Skip to content

Commit

Permalink
Deterministic test_export_folder (dduf testsà
Browse files Browse the repository at this point in the history
  • Loading branch information
Wauplin committed Feb 13, 2025
1 parent 85694fe commit 9b3450e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_dduf.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ def test_export_folder(self, dummy_folder: Path, mocker: MockerFixture):
args = mock.call_args_list[0].args

assert args[0] == "dummy.dduf"
assert list(args[1]) == [
assert sorted(list(args[1])) == [
# args[1] is a generator of tuples (path_in_archive, path_on_disk)
("config.json", dummy_folder / "config.json"),
("model.safetensors", dummy_folder / "model.safetensors"),
("encoder/config.json", dummy_folder / "encoder/config.json"),
("encoder/model.safetensors", dummy_folder / "encoder/model.safetensors"),
("model.safetensors", dummy_folder / "model.safetensors"),
]


Expand Down

0 comments on commit 9b3450e

Please sign in to comment.