Skip to content

Commit

Permalink
equals not is
Browse files Browse the repository at this point in the history
  • Loading branch information
alphasentaurii committed Oct 15, 2024
1 parent dd0191f commit 006f575
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/test_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,16 @@ def test_sync_dataset_ids(self):
def test_sync_jwst_latest(jwst_default_cache_state):
with warns() as record:
errors = SyncScript("crds.sync --contexts jwst-latest")()
assert errors is 0
assert len(record) is 0, record.pop().message
assert errors == 0
assert len(record) == 0
record.pop().message


@mark.jwst
@mark.sync
def test_sync_jwst_latest(jwst_default_cache_state):
with warns() as record:
errors = SyncScript("crds.sync --contexts jwst-build")()
assert errors is 0
assert len(record) is 0, record.pop().message
assert errors == 0
assert len(record) == 0
record.pop().message

0 comments on commit 006f575

Please sign in to comment.