Skip to content

Commit

Permalink
Remove unassigned variables and unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
natanlao committed Sep 10, 2019
1 parent 2f86015 commit 40a35f9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/integration/upload/cli/test_forget.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_when_given_an_alias_that_matches_one_area_it_forgets_that_area(self):
self.assertIn(area.uuid, UploadConfig().areas)
self.assertEqual(area.uuid, UploadConfig().current_area)

with CapturingIO('stdout') as stdout:
with CapturingIO('stdout'):
args = Namespace(uuid_or_alias=area.uuid)
ForgetCommand(args)

Expand Down
6 changes: 3 additions & 3 deletions test/integration/upload/cli/test_select.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def setUp(self):
self._uri = "s3://org-humancellatlas-upload-test/{}/".format(self._area_uuid)

def test_when_given_an_unrecognized_urn_it_stores_it_in_upload_area_list_and_sets_it_as_current_area(self):
with CapturingIO('stdout') as stdout:
with CapturingIO('stdout'):
args = Namespace(uri_or_alias=self._uri)
SelectCommand(args)

Expand All @@ -35,7 +35,7 @@ def test_when_given_an_unrecognized_urn_it_stores_it_in_upload_area_list_and_set

def test_when_given_an_unrecognized_uri_without_slash_it_sets_it_as_current_area(self):
uri_without_slash = "s3://org-humancellatlas-upload-test/{}".format(self._area_uuid)
with CapturingIO('stdout') as stdout:
with CapturingIO('stdout'):
args = Namespace(uri_or_alias=uri_without_slash)
SelectCommand(args)

Expand Down Expand Up @@ -103,7 +103,7 @@ def test_when_given_an_alias_that_matches_one_area_it_selects_it(self):
}
config.save()

with CapturingIO('stdout') as stdout:
with CapturingIO('stdout'):
args = Namespace(uri_or_alias='bbb')
SelectCommand(args)

Expand Down
1 change: 0 additions & 1 deletion test/unit/test_dss_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import hashlib
import logging
import os
import platform
import shutil
import tempfile
import threading
Expand Down

0 comments on commit 40a35f9

Please sign in to comment.