-
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.
Add some trivial tests for target_summary
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import mica.report.report | ||
|
||
|
||
def test_target_summary_or(): | ||
""" | ||
Test the target_summary method for an OR. | ||
This test is for obsid 2121 which is quite historical at this point and should | ||
not change.""" | ||
obsid = 2121 | ||
summary = mica.report.report.target_summary(obsid) | ||
assert summary is not None | ||
assert isinstance(summary, dict) | ||
assert summary["prop_num"] == 2700413 | ||
assert summary["lts_lt_plan"] is None | ||
assert summary["soe_st_sched_date"] == "Nov 14 2000 12:49AM" | ||
|
||
def test_target_summary_er(): | ||
""" | ||
Test that target_summary for an ER obsid returns None""" | ||
obsid = 54000 | ||
summary = mica.report.report.target_summary(obsid) | ||
assert summary is None | ||
|