def test_step_should_not_be_able_to_skip_when_not_running(): """A Step should not be able to be skipped when it's not running""" # given step = Step(1, "keyword", "used_keyword", "text", None, None, None, None) # then with pytest.raises(RadishError): # when step.skip() assert step.state is not State.SKIPPED
def test_step_should_be_able_to_skip_while_running(): """A Step should be able to be skipped while it's running""" # given step = Step(1, "keyword", "used_keyword", "text", None, None, None, None) step.state = State.RUNNING # when step.skip() # then assert step.state is State.SKIPPED