def run_story(text): features = Features(None) return Story(text, features).process()
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
def test_features_str(): assert str(Features(None)).startswith('Features(')