diff options
| author | Eric Harney <eharney@redhat.com> | 2019-02-26 14:13:52 -0500 |
|---|---|---|
| committer | Eric Harney <eharney@redhat.com> | 2019-02-26 14:33:51 -0500 |
| commit | a39805c6f45baf94c0d14da3ae775ee204a267ee (patch) | |
| tree | 5decca22151ebe424f718e1a898272a7261cbb0d /cinderclient/tests/unit/v2 | |
| parent | 7ee806f218cb22972a60d4e38ba1a4078e383f60 (diff) | |
| download | python-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.py | 2 |
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()) |
