Skip to content

Commit 7444735

Browse files
authored
Merge pull request #39 from matsoftware/fix-ci
Ignoring order in generated JSON
2 parents 753c547 + 17d351a commit 7444735

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

swift_code_metrics/tests/test_integration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ def test_sample_app(self):
2424
output_file = "swift_code_metrics/tests/report/output.json"
2525
scm.main() # generate report
2626
expected_file = os.path.join("swift_code_metrics/tests/test_resources", "expected_output.json")
27-
expected_json = JSONReader.read_json_file(expected_file)
28-
generated_json = JSONReader.read_json_file(output_file)
29-
self.assertEqual(generated_json, expected_json)
27+
expected_json = sorted(JSONReader.read_json_file(expected_file))
28+
generated_json = sorted(JSONReader.read_json_file(output_file))
29+
assert expected_json == generated_json
3030

3131

3232
class IntegrationUnhappyTest(unittest.TestCase):

0 commit comments

Comments
 (0)