Skip to content

Commit

Permalink
Update create_catalog_test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aradhakrishnanGFDL authored Jul 30, 2024
1 parent 35d5d99 commit b076dae
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions catalogbuilder/tests/create_catalog_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ def create_catalog(sample=True):
chdir(Path(tmp))
input_path = "archive/am5/am5/am5f3b1r0/c96L65_am5f3b1r0_pdclim1850F/gfdl.ncrc5-deploy-prod-openmp/pp"
output_path = "test"
try:
json, csv = gen_intake_gfdl.create_catalog(input_path,output_path)
except:
sys.exit("Exception occured calling gen_intake_gfdl.create_catalog")
create_data_catalog(path)
#try:
json, csv = gen_intake_gfdl.create_catalog(input_path,output_path)
# except:
# sys.exit("Exception occured calling gen_intake_gfdl.create_catalog")
json, csv = Path(f"{output}.json").resolve(), Path(f"{output}.csv").resolve()

assert not None in [csv,json]
Expand Down

0 comments on commit b076dae

Please sign in to comment.