Skip to content

Commit

Permalink
add case to load
Browse files Browse the repository at this point in the history
  • Loading branch information
capjamesg committed Oct 16, 2024
1 parent acc7efd commit 674a321
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/save_and_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,8 @@
from jamesql.index import GSI_INDEX_STRATEGIES, INDEX_STORE



@pytest.mark.skipif(not os.path.exists(INDEX_STORE), reason="Index file does not exist")
def test_load_from_local_index():
# don't run if the file doesn't exist
if not os.path.exists(INDEX_STORE):
return

with open("tests/fixtures/documents.json") as f:
documents = json.load(f)

Expand Down

0 comments on commit 674a321

Please sign in to comment.