mirror of
https://github.com/allankoechke/pywebview.git
synced 2026-12-02 01:33:02 +00:00
* Add preliminary tests * Tests experimentations * Cosmetic changes * Add preliminary tests * Tests experimentations * Cosmetic changes * Make tests work on GTK/QT * Fix confirm_quit on QT * Add possibility to use env variables in config * Add destroy event on event close in GTK * Add queue to test_url_load * Refine OSX tests
19 lines
329 B
Python
19 lines
329 B
Python
import pytest
|
|
import sys
|
|
from .util import run_test, destroy_window
|
|
|
|
|
|
def simple_browser():
|
|
import webview
|
|
destroy_window(webview)
|
|
webview.create_window('Simple browser test', 'https://www.example.org')
|
|
pass
|
|
|
|
|
|
def test_simple_browser():
|
|
run_test(simple_browser)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
pytest.main()
|