Skip to content

Commit

Permalink
Added specific zarr tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dwest77a committed Jan 10, 2025
1 parent fc666e7 commit ed5ca0c
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
22 changes: 22 additions & 0 deletions padocc/tests/test_zarr_comp.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from padocc import GroupOperation
from padocc.core.utils import BypassSwitch

WORKDIR = 'padocc/tests/auto_testdata_dir'

class TestCompute:
def test_compute_basic(self, workdir=WORKDIR):
groupID = 'padocc-test-suite'

process = GroupOperation(
groupID,
workdir=workdir,
label='test_compute',
verbose=1)

results = process.run('compute', mode='zarr', forceful=True, bypass=BypassSwitch('D'), proj_code='1DAgg')

assert results['Success'] == 1

if __name__ == '__main__':
#workdir = '/home/users/dwest77/cedadev/padocc/padocc/tests/auto_testdata_dir'
TestCompute().test_compute_basic()#workdir=workdir)
23 changes: 23 additions & 0 deletions padocc/tests/test_zarr_valid.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from padocc import GroupOperation

from padocc.core.utils import BypassSwitch

WORKDIR = 'padocc/tests/auto_testdata_dir'

class TestValidate:
def test_validate(self, workdir=WORKDIR):
groupID = 'padocc-test-suite'

process = GroupOperation(
groupID,
workdir=workdir,
label='test_validate',
verbose=1)

results = process.run('validate', mode='zarr', forceful=True, bypass=BypassSwitch('DS'),proj_code='1DAgg')

print(results)

if __name__ == '__main__':
#workdir = '/home/users/dwest77/cedadev/padocc/padocc/tests/auto_testdata_dir'
TestValidate().test_validate()#workdir=workdir)

0 comments on commit ed5ca0c

Please sign in to comment.