Skip to content

Commit e7591ea

Browse files
committed
✅ Tweak imports
1 parent 29288a3 commit e7591ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_utils_default_file.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_single_file_main(capsys: CaptureFixture[str]) -> None:
1717
old_sys_path = sys.path.copy()
1818
with changing_dir(root_path):
1919
sys.path.insert(0, str(root_path))
20-
import app
20+
app = importlib.import_module("app")
2121

2222
importlib.reload(app)
2323
import_string = get_import_string()
@@ -46,7 +46,7 @@ def test_single_file_app(capsys: CaptureFixture[str]) -> None:
4646
old_sys_path = sys.path.copy()
4747
with changing_dir(root_path):
4848
sys.path.insert(0, str(root_path))
49-
import app
49+
app = importlib.import_module("app")
5050

5151
importlib.reload(app)
5252
import_string = get_import_string()
@@ -73,7 +73,7 @@ def test_single_file_api(capsys: CaptureFixture[str]) -> None:
7373
old_sys_path = sys.path.copy()
7474
with changing_dir(root_path):
7575
sys.path.insert(0, str(root_path))
76-
import app
76+
app = importlib.import_module("app")
7777

7878
importlib.reload(app)
7979
import_string = get_import_string()

0 commit comments

Comments
 (0)