Skip to content

Commit d0fb4a2

Browse files
committed
Update import statements in test_init.py to use relative imports for environment modules
1 parent f3f1dfb commit d0fb4a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_cli/test_init.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,9 @@ def test_init_server_app_imports(tmp_path: Path) -> None:
300300

301301
# Check imports use correct class names
302302
# For 'test_env', prefix is 'Test' (removes trailing '_env')
303-
# Uses absolute imports from environment root (server.module, models)
304-
assert f"from server.{env_name}_environment import" in app_content
305-
assert "from models import" in app_content
303+
# Uses relative imports (from server subdirectory)
304+
assert f"from .{env_name}_environment import" in app_content
305+
assert "from ..models import" in app_content
306306
assert "TestEnvironment" in app_content # Prefix is 'Test', not 'TestEnv'
307307
assert "TestAction" in app_content # Prefix is 'Test', not 'TestEnv'
308308
assert "TestObservation" in app_content # Prefix is 'Test', not 'TestEnv'

0 commit comments

Comments
 (0)