Skip to content

Commit

Permalink
fix: orderless equal
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjinkun committed Feb 1, 2021
1 parent 1b9f483 commit f49f295
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_runners/test_bazel.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_subset(self):
responses.calls[1].request.body).decode())
expected = self.load_json_from_file(
self.test_files_dir.joinpath('subset_result.json'))
self.assertEqual(payload, expected)
self.assert_json_orderless_equal(payload, expected)

@responses.activate
def test_record_test(self):
Expand All @@ -51,7 +51,7 @@ def test_record_test(self):
for c in payload['events']:
del c['created_at']

self.assertEqual(payload, expected)
self.assert_json_orderless_equal(payload, expected)

@responses.activate
def test_subset_record_key_match(self):
Expand All @@ -78,4 +78,4 @@ def test_subset_record_key_match(self):
for test_paths in subset_payload['testPaths']:
for subset_test_path in test_paths:
record_test_path = record_test_path_dict.get(subset_test_path['name'])
self.assertEqual(record_test_path, subset_test_path)
self.assert_json_orderless_equal(record_test_path, subset_test_path)

0 comments on commit f49f295

Please sign in to comment.