You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
|