mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2025-12-27 22:57:50 +01:00
20 lines
875 B
Python
20 lines
875 B
Python
from .utils import should_execute_step
|
|
|
|
|
|
class TestShouldExecuteStep:
|
|
def test_no_step_arg(self):
|
|
assert should_execute_step(None, 'project_description') is True
|
|
assert should_execute_step(None, 'architecture') is True
|
|
assert should_execute_step(None, 'coding') is True
|
|
|
|
def test_skip_step(self):
|
|
assert should_execute_step('architecture', 'project_description') is False
|
|
assert should_execute_step('architecture', 'architecture') is True
|
|
assert should_execute_step('architecture', 'coding') is True
|
|
|
|
def test_unknown_step(self):
|
|
assert should_execute_step('architecture', 'unknown') is False
|
|
assert should_execute_step('unknown', 'project_description') is False
|
|
assert should_execute_step('unknown', None) is False
|
|
assert should_execute_step(None, None) is False
|