File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ def test_when_given_an_alias_that_matches_one_area_it_forgets_that_area(self):
2222 self .assertIn (area .uuid , UploadConfig ().areas )
2323 self .assertEqual (area .uuid , UploadConfig ().current_area )
2424
25- with CapturingIO ('stdout' ) as stdout :
25+ with CapturingIO ('stdout' ):
2626 args = Namespace (uuid_or_alias = area .uuid )
2727 ForgetCommand (args )
2828
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ def setUp(self):
2424 self ._uri = "s3://org-humancellatlas-upload-test/{}/" .format (self ._area_uuid )
2525
2626 def test_when_given_an_unrecognized_urn_it_stores_it_in_upload_area_list_and_sets_it_as_current_area (self ):
27- with CapturingIO ('stdout' ) as stdout :
27+ with CapturingIO ('stdout' ):
2828 args = Namespace (uri_or_alias = self ._uri )
2929 SelectCommand (args )
3030
@@ -35,7 +35,7 @@ def test_when_given_an_unrecognized_urn_it_stores_it_in_upload_area_list_and_set
3535
3636 def test_when_given_an_unrecognized_uri_without_slash_it_sets_it_as_current_area (self ):
3737 uri_without_slash = "s3://org-humancellatlas-upload-test/{}" .format (self ._area_uuid )
38- with CapturingIO ('stdout' ) as stdout :
38+ with CapturingIO ('stdout' ):
3939 args = Namespace (uri_or_alias = uri_without_slash )
4040 SelectCommand (args )
4141
@@ -103,7 +103,7 @@ def test_when_given_an_alias_that_matches_one_area_it_selects_it(self):
103103 }
104104 config .save ()
105105
106- with CapturingIO ('stdout' ) as stdout :
106+ with CapturingIO ('stdout' ):
107107 args = Namespace (uri_or_alias = 'bbb' )
108108 SelectCommand (args )
109109
Original file line number Diff line number Diff line change 22import hashlib
33import logging
44import os
5- import platform
65import shutil
76import tempfile
87import threading
You can’t perform that action at this time.
0 commit comments