Skip to content
This repository was archived by the owner on Jul 26, 2024. It is now read-only.

Commit 619a295

Browse files
committed
2 parents c3e921e + 0935329 commit 619a295

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

tests/integration/test_examples.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
from tests.utils import get_paling_server, get_console_logs
1111

12+
1213
def test_00_index(driver=None):
1314
print("test_00_index")
1415

@@ -33,7 +34,6 @@ def test_00_index(driver=None):
3334
# assert "Got this from Python:" in console_logs[0]['message']
3435
# assert "callbacks.html" in console_logs[0]['message']
3536

36-
3737
# def test_03_callbacks(driver: webdriver.Remote):
3838
# print("test_03_callbacks")
3939
# with get_paling_server('examples/03 - sync_callbacks/sync_callbacks.py', 'sync_callbacks.html') as paling_url:
@@ -60,6 +60,7 @@ def test_00_index(driver=None):
6060
# assert driver.find_element_by_id('file-name').text == os.path.basename(temp_file.name)
6161

6262

63+
6364
# def test_06_jinja_templates(driver: webdriver.Remote):
6465
# print("test_06_jinja_templates")
6566
# with get_paling_server('examples/06 - jinja_templates/hello.py', 'templates/hello.html') as paling_url:
@@ -70,6 +71,7 @@ def test_00_index(driver=None):
7071
# WebDriverWait(driver, 2.0).until(expected_conditions.presence_of_element_located((By.XPATH, '//h1[text()="This is page 2"]')))
7172

7273

74+
7375
# def test_10_custom_app(driver: webdriver.Remote):
7476
# print("test_10_custom_app")
7577
# # test default paling routes are working
@@ -82,4 +84,4 @@ def test_00_index(driver=None):
8284
# # test custom routes are working
8385
# with get_paling_server('examples/10 - custom_app_routes/custom_app.py', 'custom') as paling_url:
8486
# driver.get(paling_url)
85-
# assert 'Hello, World!' in driver.page_source
87+
# assert 'Hello, World!' in driver.page_source

tests/unit/test_paling.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
import paling
23
import pytest
34
from tests.utils import TEST_DATA_DIR
@@ -6,6 +7,7 @@
67
INIT_DIR = TEST_DATA_DIR / 'init_test'
78

89

10+
911
# @pytest.mark.parametrize('js_code, expected_matches', [
1012
# ('paling.expose(w,"say_hello_js")', ['say_hello_js']),
1113
# ('paling.expose(function(e){console.log(e)},"show_log_alt")', ['show_log_alt']),

0 commit comments

Comments
 (0)