From 152b54c315d7e5a25b2ce1bf6592427a87b37408 Mon Sep 17 00:00:00 2001 From: Aparna Radhakrishnan Date: Fri, 26 Jul 2024 11:26:46 -0400 Subject: [PATCH] Create create_catalog_test.py --- catalogbuilder/tests/create_catalog_test.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 catalogbuilder/tests/create_catalog_test.py diff --git a/catalogbuilder/tests/create_catalog_test.py b/catalogbuilder/tests/create_catalog_test.py new file mode 100644 index 0000000..07cb601 --- /dev/null +++ b/catalogbuilder/tests/create_catalog_test.py @@ -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") +