mirror of
https://github.com/allankoechke/pywebview.git
synced 2026-11-30 17:18:35 +00:00
19 lines
266 B
Python
19 lines
266 B
Python
import webview
|
|
import pytest
|
|
|
|
from .util import run_test
|
|
|
|
|
|
def test_load_html():
|
|
run_test(main_func, load_html)
|
|
|
|
|
|
def main_func():
|
|
webview.create_window('Load HTML test')
|
|
|
|
|
|
def load_html():
|
|
webview.load_html('<h1>This is dynamically loaded HTML</h1>')
|
|
|
|
|