Skip to content

Commit b75a247

Browse files
endpoint metrics test: ignore order
1 parent 39ad9ab commit b75a247

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

unittests/test_metrics_queries.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ def test_endpoint_queries(self, mock_now):
217217
# Assert that we get expected querysets back. This is to be used to
218218
# support refactoring, in attempt of lowering the query count.
219219

220-
# assertCountEqual(first, second, msg=None)¶
221-
# Test that sequence first contains the same elements as second, regardless of their order. When they dont, an error message listing the differences between the sequences will be generated.
220+
# https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertCountEqual
221+
# Test that sequence first contains the same elements as second, regardless of their order. When they don't, an error message listing the differences between the sequences will be generated.
222222
# Duplicate elements are not ignored when comparing first and second. It verifies whether each element has the same count in both sequences. Equivalent to: assertEqual(Counter(list(first)), Counter(list(second))) but works with sequences of unhashable objects as well.
223223
self.assertCountEqual(
224224
endpoint_queries["all"].values(),

0 commit comments

Comments
 (0)