Skip to content

Commit

Permalink
Update tests/test_parse_v1.py
Browse files Browse the repository at this point in the history
Co-authored-by: Michele Dolfi <[email protected]>
Signed-off-by: Peter W. J. Staar <[email protected]>
  • Loading branch information
PeterStaar-IBM and dolfim-ibm authored Jan 23, 2025
1 parent 9d71602 commit 50a2dbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_parse_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def test_reference_documents_from_filenames_with_keys():
rname = os.path.basename(pdf_doc)
fname = os.path.join(GROUNDTRUTH_FOLDER, rname + ".v1.json")

if GENERATE or (not os.path.exists(fname)):
if not os.getenv("CI") and (GENERATE or (not os.path.exists(fname))):
with open(fname, "w") as fw:
fw.write(json.dumps(pred_doc, indent=2))

Expand Down

0 comments on commit 50a2dbf

Please sign in to comment.