summaryrefslogtreecommitdiff
path: root/cinderclient/tests/unit/v2
diff options
context:
space:
mode:
authorEric Harney <eharney@redhat.com>2019-02-26 14:13:52 -0500
committerEric Harney <eharney@redhat.com>2019-02-26 14:33:51 -0500
commita39805c6f45baf94c0d14da3ae775ee204a267ee (patch)
tree5decca22151ebe424f718e1a898272a7261cbb0d /cinderclient/tests/unit/v2
parent7ee806f218cb22972a60d4e38ba1a4078e383f60 (diff)
downloadpython-cinderclient-a39805c6f45baf94c0d14da3ae775ee204a267ee.tar.gz
Tests: Don't write bash-completion cache files
Mock out writing of bash-completion cache files during unit tests. Related-Bug: #1817782 Change-Id: I944862c30fb4684dd034eba6953e9302d2d22439
Diffstat (limited to 'cinderclient/tests/unit/v2')
-rw-r--r--cinderclient/tests/unit/v2/test_shell.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cinderclient/tests/unit/v2/test_shell.py b/cinderclient/tests/unit/v2/test_shell.py
index 4e966dd..50aad0e 100644
--- a/cinderclient/tests/unit/v2/test_shell.py
+++ b/cinderclient/tests/unit/v2/test_shell.py
@@ -51,6 +51,8 @@ class ShellTest(utils.TestCase):
self.useFixture(fixtures.EnvironmentVariable(var,
self.FAKE_ENV[var]))
+ self.mock_completion()
+
self.shell = shell.OpenStackCinderShell()
self.requests = self.useFixture(requests_mock_fixture.Fixture())