Skip to content

Commit 7bf09cd

Browse files
committed
test: Update tests to use private methods from refactored setup
- Updated test_stack_detection.py to use _detect_project_info() - Updated test_workflow_generation.py to use _create_github_workflows() - These methods were made private during the refactoring
1 parent 5cc0049 commit 7bf09cd

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tests/test_stack_detection.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def test_detect_react_nextjs(self):
4141
# Run detection
4242
with patch('pathlib.Path.cwd', return_value=self.project_root):
4343
setup = ConductorSetup(auto_mode=True)
44-
setup.detect_project_info()
44+
setup._detect_project_info()
4545

4646
# Verify detection
4747
assert len(setup.detected_stack) > 0
@@ -66,7 +66,7 @@ def test_detect_python_django(self):
6666
# Run detection
6767
with patch('pathlib.Path.cwd', return_value=self.project_root):
6868
setup = ConductorSetup(auto_mode=True)
69-
setup.detect_project_info()
69+
setup._detect_project_info()
7070

7171
# Verify detection
7272
assert len(setup.detected_stack) > 0
@@ -92,7 +92,7 @@ def test_detect_python_ml(self):
9292
# Run detection
9393
with patch('pathlib.Path.cwd', return_value=self.project_root):
9494
setup = ConductorSetup(auto_mode=True)
95-
setup.detect_project_info()
95+
setup._detect_project_info()
9696

9797
# Verify detection
9898
assert len(setup.detected_stack) > 0
@@ -122,7 +122,7 @@ def test_detect_go_microservices(self):
122122
# Run detection
123123
with patch('pathlib.Path.cwd', return_value=self.project_root):
124124
setup = ConductorSetup(auto_mode=True)
125-
setup.detect_project_info()
125+
setup._detect_project_info()
126126

127127
# Verify detection
128128
assert len(setup.detected_stack) > 0
@@ -150,7 +150,7 @@ def test_detect_mobile_flutter(self):
150150
# Run detection
151151
with patch('pathlib.Path.cwd', return_value=self.project_root):
152152
setup = ConductorSetup(auto_mode=True)
153-
setup.detect_project_info()
153+
setup._detect_project_info()
154154

155155
# Verify detection
156156
assert len(setup.detected_stack) > 0
@@ -178,7 +178,7 @@ def test_detect_dotnet_aspnet(self):
178178
# Run detection
179179
with patch('pathlib.Path.cwd', return_value=self.project_root):
180180
setup = ConductorSetup(auto_mode=True)
181-
setup.detect_project_info()
181+
setup._detect_project_info()
182182

183183
# Verify detection
184184
assert len(setup.detected_stack) > 0
@@ -208,7 +208,7 @@ def test_multiple_stack_detection(self):
208208
# Run detection
209209
with patch('pathlib.Path.cwd', return_value=self.project_root):
210210
setup = ConductorSetup(auto_mode=True)
211-
setup.detect_project_info()
211+
setup._detect_project_info()
212212

213213
# Verify multiple stacks detected
214214
assert len(setup.detected_stack) >= 2

tests/test_workflow_generation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_generated_workflows_use_github_token():
3838
try:
3939
os.chdir(project_path)
4040
setup = ConductorSetup()
41-
setup.create_github_workflows()
41+
setup._create_github_workflows()
4242
finally:
4343
os.chdir(original_cwd)
4444

0 commit comments

Comments
 (0)