Skip to content

Commit

Permalink
/* PR_START 02 */ Update query parser tests to use snapshots.
Browse files Browse the repository at this point in the history
  • Loading branch information
plypaul committed May 15, 2024
1 parent 18920c4 commit febddc2
Show file tree
Hide file tree
Showing 2 changed files with 133 additions and 161 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,8 @@ def assert_linkable_spec_set_snapshot_equal( # noqa: D103
def assert_object_snapshot_equal( # type: ignore[misc]
request: FixtureRequest,
mf_test_configuration: SnapshotConfiguration,
obj_id: str,
obj: Any,
obj_id: str = "result",
) -> None:
"""For tests to compare large objects, this can be used to snapshot a text representation of the object."""
assert_snapshot_text_equal(
Expand All @@ -375,7 +375,7 @@ def assert_object_snapshot_equal( # type: ignore[misc]
)


def assert_str_snapshot_equal( # type: ignore[misc]
def assert_str_snapshot_equal( # noqa: D103
request: FixtureRequest,
mf_test_configuration: SnapshotConfiguration,
snapshot_id: str,
Expand Down
Loading

0 comments on commit febddc2

Please sign in to comment.