summaryrefslogtreecommitdiff
path: root/test/unit/test_basic.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/test_basic.py')
-rw-r--r--test/unit/test_basic.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/unit/test_basic.py b/test/unit/test_basic.py
index ca956e7..2564e9d 100644
--- a/test/unit/test_basic.py
+++ b/test/unit/test_basic.py
@@ -19,6 +19,8 @@ Haketilo unit tests - base
import pytest
+from ..script_loader import load_script
+
def test_driver(driver):
"""
A trivial test case that verifies mocked web pages served by proxy can be
@@ -32,12 +34,12 @@ def test_driver(driver):
assert "Schrodinger's Document" in title
@pytest.mark.get_page('https://gotmyowndoma.in')
-def test_script_loader(execute_in_page, load_into_page):
+def test_script_loader(execute_in_page):
"""
A trivial test case that verifies Haketilo's .js files can be properly
loaded into a test page together with their dependencies.
"""
- load_into_page('common/stored_types.js', ['common'])
+ execute_in_page(load_script('common/stored_types.js'))
assert execute_in_page('returnval(TYPE_PREFIX.VAR);') == '_'