Skip to content

Commit

Permalink
Fix mock error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon committed Sep 7, 2023
1 parent c4f4bcf commit 678c13e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tom_observations/tests/facilities/test_ocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def setUp(self):
@patch('tom_observations.facilities.ocs.make_request')
def test_get_facility_status_fails_gracefully(self, mock_make_request):
mock_response = Response()
mock_response._content = str.encode('ConnectionError - Error retrieving telescope availability')
mock_response._content = str.encode('ConnectionError - Error retrieving telescope states')
mock_response.status_code = 502
mock_make_request.return_value = mock_response
facility_status = self.lco.get_facility_status()
Expand Down

0 comments on commit 678c13e

Please sign in to comment.