Skip to content

Commit 01ff51d

Browse files
committed
test: Fix remaining test method calls after refactoring
- Updated _auto_configure() calls to use _detect_project_info() and _gather_configuration() since _auto_configure doesn't exist - Updated create_role_definitions() to _create_role_definitions() - Tests now properly call the refactored private methods
1 parent 7bf09cd commit 01ff51d

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

tests/test_stack_detection.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,9 @@ def test_code_reviewer_always_included(self):
237237
# Run auto-configuration
238238
with patch('pathlib.Path.cwd', return_value=self.project_root):
239239
setup = ConductorSetup(auto_mode=True)
240-
setup._auto_configure()
240+
# Run the full setup process which includes auto configuration
241+
setup._detect_project_info()
242+
setup._gather_configuration()
241243

242244
# Verify code-reviewer is included
243245
specialized_roles = setup.config["roles"]["specialized"]
@@ -252,7 +254,9 @@ def test_devops_role_for_docker(self):
252254
# Run auto-configuration
253255
with patch('pathlib.Path.cwd', return_value=self.project_root):
254256
setup = ConductorSetup(auto_mode=True)
255-
setup._auto_configure()
257+
# Run the full setup process which includes auto configuration
258+
setup._detect_project_info()
259+
setup._gather_configuration()
256260

257261
# Verify devops role is included
258262
specialized_roles = setup.config["roles"]["specialized"]
@@ -266,7 +270,9 @@ def test_github_issues_preference(self):
266270
# Run auto-configuration
267271
with patch('pathlib.Path.cwd', return_value=self.project_root):
268272
setup = ConductorSetup(auto_mode=True)
269-
setup._auto_configure()
273+
# Run the full setup process which includes auto configuration
274+
setup._detect_project_info()
275+
setup._gather_configuration()
270276

271277
# Verify GitHub Issues is selected
272278
assert setup.config["task_management"] == "github-issues"
@@ -295,7 +301,7 @@ def test_role_template_creation():
295301
}
296302

297303
# Create role definitions
298-
setup.create_role_definitions()
304+
setup._create_role_definitions()
299305

300306
# Verify all role files exist
301307
roles_dir = setup.conductor_dir / "roles"

0 commit comments

Comments
 (0)