Skip to content

Commit

Permalink
Create create_catalog_test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aradhakrishnanGFDL authored Jul 26, 2024
1 parent ce96f84 commit 152b54c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions catalogbuilder/tests/create_catalog_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env python

@pytest.mark.skip(reason="this can only work with a conda installed catalogbuilder now")
#TODO test after conda pkg is published and make changes as needed
from catalogbuilder.scripts import gen_intake_gfdl
#from . import gen_intake_gfdl
import sys

input_path = "archive/am5/am5/am5f3b1r0/c96L65_am5f3b1r0_pdclim1850F/gfdl.ncrc5-deploy-prod-openmp/pp"
output_path = "test"
try:
gen_intake_gfdl.create_catalog(input_path,output_path)
except:
sys.exit("Exception occured calling gen_intake_gfdl.create_catalog")

0 comments on commit 152b54c

Please sign in to comment.