thompsonson Claude commited on
Commit
f63cf4c
·
1 Parent(s): 230696b

fix: move imports to top-level to resolve linting errors

Browse files

- Move belief_module import to top of test_architectural_constraints.py
- Move BeliefUpdate import to top of test_game_coordination.py
- Resolve PLC0415 linting errors from CI pipeline

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

tests/test_architectural_constraints.py CHANGED
@@ -11,6 +11,7 @@ import inspect
11
 
12
  import pytest
13
 
 
14
  from domains.belief.belief_domain import BayesianBeliefState, BeliefUpdate
15
  from domains.coordination.game_coordination import BayesianGame
16
  from domains.environment.environment_domain import EnvironmentEvidence
@@ -109,8 +110,6 @@ class TestArchitecturalConstraints:
109
 
110
  def test_domain_import_isolation(self):
111
  """Test that belief domain doesn't import environment domain."""
112
- import domains.belief.belief_domain as belief_module
113
-
114
  # Get all imports in the belief domain module
115
  belief_source = inspect.getsource(belief_module)
116
 
 
11
 
12
  import pytest
13
 
14
+ import domains.belief.belief_domain as belief_module
15
  from domains.belief.belief_domain import BayesianBeliefState, BeliefUpdate
16
  from domains.coordination.game_coordination import BayesianGame
17
  from domains.environment.environment_domain import EnvironmentEvidence
 
110
 
111
  def test_domain_import_isolation(self):
112
  """Test that belief domain doesn't import environment domain."""
 
 
113
  # Get all imports in the belief domain module
114
  belief_source = inspect.getsource(belief_module)
115
 
tests/test_game_coordination.py CHANGED
@@ -1,5 +1,6 @@
1
  import pytest
2
 
 
3
  from domains.coordination.game_coordination import BayesianGame, GamePhase, GameState
4
  from domains.environment.environment_domain import EnvironmentEvidence
5
 
@@ -309,8 +310,6 @@ class TestBayesianGame:
309
  game.start_new_game(target_value=3)
310
 
311
  # Apply evidence that changes beliefs
312
- from domains.belief.belief_domain import BeliefUpdate
313
-
314
  update = BeliefUpdate(comparison_results=["higher"])
315
  game.belief_state.update_beliefs(update)
316
 
 
1
  import pytest
2
 
3
+ from domains.belief.belief_domain import BeliefUpdate
4
  from domains.coordination.game_coordination import BayesianGame, GamePhase, GameState
5
  from domains.environment.environment_domain import EnvironmentEvidence
6
 
 
310
  game.start_new_game(target_value=3)
311
 
312
  # Apply evidence that changes beliefs
 
 
313
  update = BeliefUpdate(comparison_results=["higher"])
314
  game.belief_state.update_beliefs(update)
315