diff options
author | Akihiro Motoki <amotoki@gmail.com> | 2017-08-09 15:23:54 +0000 |
---|---|---|
committer | Akihiro Motoki <amotoki@gmail.com> | 2017-08-12 20:27:50 +0000 |
commit | a0893c32c7929fa5b3fb7c3b08820baeed3023b3 (patch) | |
tree | 7cd929be25787c2990fbbc79f9e8f58c94c5840a | |
parent | 171febb51ed512d178bee2d9a3ca1cced829a577 (diff) | |
download | python-neutronclient-a0893c32c7929fa5b3fb7c3b08820baeed3023b3.tar.gz |
Define shell.COMMANDS explicitly to avoid random UT failure
Mocking non-existing attribute causes UT failure.
As a result, neutronclient UT fails depending on
executing order of tests.
Change-Id: Id047527fba9e908938f7157781fb0e36e76011c7
Closes-Bug: #1709652
(cherry picked from commit 4c3fbe2639664c25d3c06522f9c85713e65bb893)
-rw-r--r-- | neutronclient/shell.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/neutronclient/shell.py b/neutronclient/shell.py index 4045b8b..4814c81 100644 --- a/neutronclient/shell.py +++ b/neutronclient/shell.py @@ -103,6 +103,9 @@ def check_non_negative_int(value): return value +COMMANDS = {} + + # NOTE(amotoki): This is only to provide compatibility # to existing neutron CLI extensions. See bug 1706573 for detail. def _set_commands_dict_for_compat(apiversion, command_manager): |