File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ def test_single_file_main(capsys: CaptureFixture[str]) -> None:
17
17
old_sys_path = sys .path .copy ()
18
18
with changing_dir (root_path ):
19
19
sys .path .insert (0 , str (root_path ))
20
- import app
20
+ app = importlib . import_module ( " app" )
21
21
22
22
importlib .reload (app )
23
23
import_string = get_import_string ()
@@ -46,7 +46,7 @@ def test_single_file_app(capsys: CaptureFixture[str]) -> None:
46
46
old_sys_path = sys .path .copy ()
47
47
with changing_dir (root_path ):
48
48
sys .path .insert (0 , str (root_path ))
49
- import app
49
+ app = importlib . import_module ( " app" )
50
50
51
51
importlib .reload (app )
52
52
import_string = get_import_string ()
@@ -73,7 +73,7 @@ def test_single_file_api(capsys: CaptureFixture[str]) -> None:
73
73
old_sys_path = sys .path .copy ()
74
74
with changing_dir (root_path ):
75
75
sys .path .insert (0 , str (root_path ))
76
- import app
76
+ app = importlib . import_module ( " app" )
77
77
78
78
importlib .reload (app )
79
79
import_string = get_import_string ()
You can’t perform that action at this time.
0 commit comments