Skip to content

Commit

Permalink
Don't enforce dictionary ordering in signac diff. (#312)
Browse files Browse the repository at this point in the history
* Don't enforce dictionary ordering in signac diff.

* Use set comparison of output lines.
  • Loading branch information
bdice authored Mar 21, 2020
1 parent eb5cd29 commit 232d018
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,8 @@ def test_diff(self):
job_b.init()
out = self.call('python -m signac diff {} {}'.format(job_a.id, job_b.id).split())
expected = [str(job_a.id), "{'b': 1}", str(job_b.id), "{'b': 0}"]
assert out.strip().split(os.linesep) == expected
outputs = out.strip().split(os.linesep)
assert set(expected) == set(outputs)

def test_clone(self):
self.call('python -m signac init ProjectA'.split())
Expand Down

0 comments on commit 232d018

Please sign in to comment.