Skip to content

Commit

Permalink
Rename unified_diff_output to fail_with_diff
Browse files Browse the repository at this point in the history
  • Loading branch information
miteshashar committed Dec 13, 2022
1 parent 3c99f32 commit bb41905
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1692,7 +1692,7 @@ def new_proposal(models, db_session, new_user, new_project) -> funnel_models.Pro


@pytest.fixture()
def unified_diff_output():
def fail_with_diff():
def func(left, right):
if left != right:
difference = unified_diff(left.split('\n'), right.split('\n'))
4 changes: 2 additions & 2 deletions tests/unit/utils/markdown/test_markdown.py
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ def test_markdown_blank() -> None:


# def test_markdown_cases(
# md_testname: str, md_configname: str,markdown_test_registry, unified_diff_output) -> None:
# md_testname: str, md_configname: str,markdown_test_registry, fail_with_diff
# ) -> None:
def test_markdown_cases(
md_testname: str, md_configname: str, markdown_test_registry
@@ -38,7 +38,7 @@ def test_markdown_cases(
assert case.expected_output == case.output

# Debug function
# unified_diff_output(case.expected_output, case.output)
# fail_with_diff(case.expected_output, case.output)


@pytest.mark.update_markdown_data()

0 comments on commit bb41905

Please sign in to comment.