Skip to content

Commit

Permalink
Make sure find_value_location() doesn't mutate document
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleFromNVIDIA committed Apr 30, 2024
1 parent c2c9114 commit 99fd9ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/rapids_pre_commit_hooks/test_pyproject_license.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def test_find_value_location(key, loc):
)
parsed_doc = tomlkit.loads(CONTENT)
assert pyproject_license.find_value_location(parsed_doc, key) == loc
assert parsed_doc.as_string() == CONTENT


@pytest.mark.parametrize(
Expand Down

0 comments on commit 99fd9ff

Please sign in to comment.