Skip to content

Commit

Permalink
fix failing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Nation committed Jun 12, 2019
1 parent ee0573e commit a7b7f6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion observation_portal/requestgroups/test/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2393,7 +2393,8 @@ def test_anonymize(self):

@patch('observation_portal.requestgroups.contention.get_filtered_rise_set_intervals_by_site')
def test_binned_pressure_by_hours_from_now_should_be_gtzero_pressure(self, mock_intervals):
request = mixer.blend(Request, state='PENDING', duration=120*60) # 2 hour duration.
requestgroup = mixer.blend(RequestGroup, observation_type=RequestGroup.NORMAL)
request = mixer.blend(Request, request_group=requestgroup, state='PENDING', duration=120*60) # 2 hour duration.
mixer.blend(Window, request=request)
mixer.blend(Location, request=request, site='tst')
conf = mixer.blend(Configuration, request=request, instrument_type='1M0-SCICAM-SBIG')
Expand Down

0 comments on commit a7b7f6d

Please sign in to comment.