Skip to content

Commit

Permalink
JSONStore: fix KeyError test
Browse files Browse the repository at this point in the history
  • Loading branch information
rkingsbury committed Apr 11, 2022
1 parent 309cd56 commit d2b0cad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/stores/test_mongolike.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,9 @@ def test_json_store_load(jsonstore, test_dir):
assert len(list(jsonstore.query())) == 20

# confirm descriptive error raised if you get a KeyError
with pytest.raises(KeyError, match="Key field 'random key' not found"):
with pytest.raises(KeyError, match="Key field 'random_key' not found"):
jsonstore = JSONStore(test_dir / "test_set" / "c.json.gz", key="random_key")
jsonstore.connect()


def test_json_store_writeable(test_dir):
Expand Down

0 comments on commit d2b0cad

Please sign in to comment.