Skip to content

Commit

Permalink
Add test for pad_fieldid
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean-Morrison committed Oct 18, 2023
1 parent eb61d0c commit cd56b26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/path/test_sdss5.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ def test_apogee_paths(self, path, name, special, keys, exp):
'v6_0_8/001234/spFrame-b1-00005432.fits.gz'),
('spFrame', '@pad_fieldid', {'run2d': 'v6_0_4', 'br': 'b', 'id': '1', 'frame': '5432', 'fieldid':'1234'},
'v6_0_4/1234p/spFrame-b1-00005432.fits.gz')],
('spField', '@pad_fieldid', {'run2d': 'v6_0_8', 'mjd': '59630', 'fieldid': '*'},
'v6_1_1/*/spField-*-59630.fits'),
ids=['configgrp', 'apgprefix-apo', 'apgprefix-lco', 'apgprefix-ins',
'isplate-v6_0_4','pad_fieldid-5','pad_fieldid-6', 'frame-pad', 'frame-nopadp'])
'isplate-v6_0_4','pad_fieldid-5','pad_fieldid-6', 'frame-pad', 'frame-nopadp', 'pad_fieldid-*'])
def test_special_function(self, path, name, special, keys, exp):
assert special in path.templates[name]
full = path.full(name, **keys)
Expand Down

0 comments on commit cd56b26

Please sign in to comment.