Exemplo n.º 1
0
def run_story(text):
    features = Features(None)
    return Story(text, features).process()
Exemplo n.º 2
0
def test_exceptions_file_not_found(capsys):
    with raises(StoryError) as e:
        Story.from_file('this-file-does-not-exist', Features(None))
    message = e.value.message()
    assert 'File `this-file-does-not-exist` not found at' in message
Exemplo n.º 3
0
def test_features_str():
    assert str(Features(None)).startswith('Features(')