Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Vrachev <[email protected]>
  • Loading branch information
MVrachev committed Sep 16, 2024
1 parent ff0fe7c commit b89d03e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit/api/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,10 +598,10 @@ def test_get_metadata_sign_with_trusted_targets(
}

# Change trusted root:
trusted_targets_dict = copy.deepcopy(data["metadata"]["root"])
trusted_targets_dict["signed"]["version"] = 10
pending_targets_dict = copy.deepcopy(trusted_targets_dict)
pending_targets_dict["signed"]["version"] = 10
fake_targets_pending_metadata = pretend.stub(
to_dict=pretend.call_recorder(lambda: trusted_targets_dict)
to_dict=pretend.call_recorder(lambda: pending_targets_dict)
)
fake_targets_trusted_metadata = pretend.stub(
to_dict=pretend.call_recorder(lambda: trusted_targets_dict)
Expand All @@ -628,7 +628,7 @@ def get_role(setting: str):
assert response.json() == {
"data": {
"metadata": {
"targets": trusted_targets_dict,
"targets": pending_targets_dict,
"trusted_targets": trusted_targets_dict,
}
},
Expand Down

0 comments on commit b89d03e

Please sign in to comment.