Skip to content

Commit

Permalink
fixed flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
terazus committed Jul 26, 2023
1 parent 14ebbfe commit 4ecbfc8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/test_api/test_queries/test_files/test_isa.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ def test_convert_success(self, mock_jwt_verify_flask, mock_jwt_verify_utils, moc
with app.test_client() as client:
response = client.get('/api/files/1/isa', headers=HEADERS)
self.assertEqual(response.json, {'message': 'SUCCESS'})
self.assertEqual(response.status_code, 200)
self.assertEqual(response.status_code, 200)
5 changes: 2 additions & 3 deletions tests/test_api/test_queries/test_files/test_shipment.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def ship_samples(self):
mock_user().role = 'admin'
with app.test_client() as client:
response = client.get('/api/files/1/ship', headers=HEADERS)
self.assertEqual(response.json, {'message': f'File 1 shipped successfully.'})
self.assertEqual(response.json, {'message': 'File 1 shipped successfully.'})
self.assertEqual(response.status_code, 200)
mock_drive().lock_file.assert_called_once_with('123')

Expand Down Expand Up @@ -120,7 +120,6 @@ def shipment_was_received(self):
mock_user().role = 'admin'
with app.test_client() as client:
response = client.get('/api/files/1/receive', headers=HEADERS)
self.assertEqual(response.json, {'message': f'File 1 received successfully.'})
self.assertEqual(response.json, {'message': 'File 1 received successfully.'})
self.assertEqual(response.status_code, 200)
mock_save.assert_called_once_with("1")

1 change: 0 additions & 1 deletion tests/test_database/test_models/test_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,4 +212,3 @@ def test_ship_samples_success(self, mock_session, mock_user, mock_chemical, mock
file.ship_samples()
self.assertTrue(file.shipped)
mock_session.commit.assert_called_once()

1 change: 0 additions & 1 deletion tests/test_lib/test_gdrive/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,3 @@ def test_lock_file_permission_denied(self, drive_mock, google_auth_mock):
self.assertEqual(str(context.exception), "Unable to lock file 123 from Google Drive. This is probably because "
"it is an external file: "
"'NoneType' object has no attribute 'CreateFile'")

0 comments on commit 4ecbfc8

Please sign in to comment.