diff options
author | lim <lim@stsci.edu> | 2012-05-21 14:19:51 -0400 |
---|---|---|
committer | lim <lim@stsci.edu> | 2012-05-21 14:19:51 -0400 |
commit | 8e6b72470bd7ce8a709b2538e4cd2becd16154ae (patch) | |
tree | 75f5c0faae2472ea93ea81fbc2b63ccf3abaa0d1 /lib/test/test_shared.py | |
parent | 41959ca9c7056f27214c53fba2650402e84117ef (diff) | |
download | stsci.sphere-8e6b72470bd7ce8a709b2538e4cd2becd16154ae.tar.gz |
lim fixed tests that failed because of image de-compression on SVN
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/branches/sphere@16923 fe389314-cf27-0410-b35b-8c050e845b92
Former-commit-id: 4bf54e5d84f6f6984ce3ad70ed05b1e048de6f02
Diffstat (limited to 'lib/test/test_shared.py')
-rw-r--r-- | lib/test/test_shared.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/test/test_shared.py b/lib/test/test_shared.py new file mode 100644 index 0000000..fa7d249 --- /dev/null +++ b/lib/test/test_shared.py @@ -0,0 +1,12 @@ +import os + +def resolve_imagename(ROOT_DIR, base_name): + """Resolve image name for tests.""" + + image_name = os.path.join(ROOT_DIR, base_name) + + # Is it zipped? + if not os.path.isfile(image_name): + image_name.replace('.fits', '.fits.gz') + + return image_name |