Skip to content

Commit

Permalink
Revert "update truth times/counts from production"
Browse files Browse the repository at this point in the history
This reverts commit fa81e50.
  • Loading branch information
stscieisenhamer committed Sep 25, 2023
1 parent 8498c9b commit 5c9a333
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions jwst/lib/tests/test_engdb_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@
# For mocking, just use localhost
ENGDB_MOCK_URL = 'http://localhost/'

# Midpoint is about 2022-01-26T02:32:26.205
# When checking against an actual engineering DB, use the production one.
GOOD_STARTTIME = '2022-01-26 02:29:02.188'
GOOD_ENDTIME = '2022-01-26 02:35:50.185'
# Midpoint is about 2021-01-26T02:32:26.205
GOOD_STARTTIME = '2021-01-26 02:29:02.188'
GOOD_ENDTIME = '2021-01-26 02:35:50.185'
GOOD_MNEMONIC = 'inrsi_gwa_y_tilt_avged'
EARLY_STARTTIME = '2014-01-01'
EARLY_ENDTIME = '2014-01-02'
Expand Down Expand Up @@ -91,7 +90,7 @@ def test_cache_partial_data(db_cache, engdb):
Test read of some data.
"""
data = db_cache.fetch_data(GOOD_MNEMONIC, GOOD_STARTTIME, GOOD_ENDTIME)
assert data['Count'] > 1 # Just to make sure we have some data
assert data['Count'] > 4 # Just to make sure we have some data
endtime = Time(
engdb_direct.extract_db_time(data['Data'][1]['ObsTime']) / 1000.,
format='unix'
Expand All @@ -115,7 +114,7 @@ def test_cache_end_data(db_cache, engdb):
Test read of some data.
"""
data = db_cache.fetch_data(GOOD_MNEMONIC, GOOD_STARTTIME, GOOD_ENDTIME)
assert data['Count'] > 1 # Just to make sure we have some data
assert data['Count'] > 4 # Just to make sure we have some data

# First test pre-data.
data_short = db_cache.fetch_data(
Expand Down

0 comments on commit 5c9a333

Please sign in to comment.