We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 309437b + 2eca527 commit d97ec37Copy full SHA for d97ec37
tests/unit/test_shell.py
@@ -388,6 +388,17 @@ def test_no_help(self):
388
389
class TestParsing(unittest.TestCase):
390
391
+ def setUp(self):
392
+ super(TestParsing, self).setUp()
393
+ self._orig_environ = os.environ.copy()
394
+ keys = os.environ.keys()
395
+ for k in keys:
396
+ if k in ('ST_KEY', 'ST_USER', 'ST_AUTH'):
397
+ del os.environ[k]
398
+
399
+ def tearDown(self):
400
+ os.environ = self._orig_environ
401
402
def _make_fake_command(self, result):
403
def fake_command(parser, args, thread_manager):
404
result[0], result[1] = swiftclient.shell.parse_args(parser, args)
0 commit comments