コード例 #1
0
ファイル: test_core.py プロジェクト: rayjolt/reformat-gherkin
def test_assert_stable_fail(options):
    src = dst = get_content("full")

    with pytest.raises(StableError):
        core.assert_stable(src, dst, options=options)
コード例 #2
0
ファイル: test_core.py プロジェクト: rayjolt/reformat-gherkin
def test_assert_stable(valid_contents, options):
    for content in valid_contents():
        formatted_content = core.format_file_contents(content, options=options)

        core.assert_stable(content, formatted_content, options=options)