Skip to content

Commit

Permalink
Remove the extraneous u from strings in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paramsingh committed May 14, 2019
1 parent 56c930a commit 291c3ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion webserver/views/api/v1/test/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def test_ll_bad_uuid_404(self, load_low_level):
self.assertEqual(404, resp.status_code)
load_low_level.assert_not_called()

expected_result = {u"message": u"The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again."}
expected_result = {"message": "The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again."}
self.assertEqual(resp.json, expected_result)

@mock.patch("db.data.load_low_level")
Expand Down
2 changes: 1 addition & 1 deletion webserver/views/api/v1/test/test_dataset_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def test_get_job_details_invalid_uuid(self, get_job):
resp = self.client.get('/api/v1/datasets/evaluation/jobs/7804abe5-58be-4c9c-a787-22b91d03xxxx', content_type='application/json')
self.assertEqual(resp.status_code, 404)

expected_result = {u"message": u"The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again."}
expected_result = {"message": "The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again."}
self.assertEqual(resp.json, expected_result)

@mock.patch('db.dataset_eval.get_job')
Expand Down
2 changes: 1 addition & 1 deletion webserver/views/api/v1/test/test_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def test_update_dataset_details_bad_uuid(self, dataset_get):
resp = self.client.put(url, data=json.dumps(submit), content_type="application/json")

self.assertEqual(resp.status_code, 404)
expected_result = {u"message": u"The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again."}
expected_result = {"message": "The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again."}
self.assertEqual(resp.json, expected_result)

@mock.patch("db.dataset.get")
Expand Down

0 comments on commit 291c3ae

Please sign in to comment.