forked from spacetelescope/jwql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into change-update-monitor-table-to-django
- Loading branch information
Showing
18 changed files
with
443 additions
and
336 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 0 additions & 63 deletions
63
jwql/jwql_monitors/create_initial_preview_and_thumbnail_listfiles.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#! /usr/bin/env python | ||
|
||
"""Tests for the ``archive_database_update`` module. | ||
Authors | ||
------- | ||
- Bryan Hilbert | ||
Use | ||
--- | ||
These tests can be run via the command line (omit the ``-s`` to | ||
suppress verbose output to stdout): | ||
:: | ||
pytest -s test_archive_database_update.py | ||
""" | ||
|
||
|
||
import pytest | ||
|
||
from jwql.website.apps.jwql import archive_database_update | ||
|
||
|
||
def test_filter_rootnames(): | ||
"""Test the filtering of source-based level 2 files | ||
""" | ||
files = ['jw06434-c1021_s000001510_nircam_f444w-grismr.fits', | ||
'jw01068004001_02102_00001_nrcb4_rate.fits', | ||
'jw06434-c1021_t000_nircam_clear-f090w_segm.fits', | ||
'jw06434-o001_t000_nircam_clear-f090w_segm.fits', | ||
'jw02183117001_03103_00001-seg001_nrca1_rate.fits'] | ||
|
||
filtered = archive_database_update.filter_rootnames(files) | ||
expected = ['jw01068004001_02102_00001_nrcb4_rate.fits', | ||
'jw02183117001_03103_00001-seg001_nrca1_rate.fits'] | ||
assert filtered == expected |
Oops, something went wrong.