From 2d0d8e175e08d1fccdc6b79bcdf41a17812e499b Mon Sep 17 00:00:00 2001 From: dustinface <35775977+xdustinface@users.noreply.github.com> Date: Thu, 5 May 2022 17:16:33 +0200 Subject: [PATCH] test: Missing duplicates tests in `test_receiver.py` (#11413) --- tests/plot_sync/test_receiver.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/plot_sync/test_receiver.py b/tests/plot_sync/test_receiver.py index 57f7d2d3bd..1eda3c17b1 100644 --- a/tests/plot_sync/test_receiver.py +++ b/tests/plot_sync/test_receiver.py @@ -218,6 +218,7 @@ async def test_reset() -> None: receiver._last_sync = dataclasses.replace(receiver._current_sync) receiver._invalid = ["1"] receiver._keys_missing = ["1"] + receiver._duplicates = ["1"] receiver._last_sync.sync_id = uint64(1) # Call `reset` and make sure all expected values are set back to their defaults. @@ -237,6 +238,7 @@ async def test_to_dict(counts_only: bool) -> None: assert get_list_or_len(plot_sync_dict_1["plots"], not counts_only) == 10 assert get_list_or_len(plot_sync_dict_1["failed_to_open_filenames"], not counts_only) == 0 assert get_list_or_len(plot_sync_dict_1["no_key_filenames"], not counts_only) == 0 + assert get_list_or_len(plot_sync_dict_1["duplicates"], not counts_only) == 0 assert plot_sync_dict_1["total_plot_size"] == sum(plot.file_size for plot in receiver.plots().values()) assert plot_sync_dict_1["syncing"] is None assert plot_sync_dict_1["last_sync_time"] is None