diff options
| author | Stephen Finucane <sfinucan@redhat.com> | 2022-11-07 17:21:12 +0000 |
|---|---|---|
| committer | Stephen Finucane <sfinucan@redhat.com> | 2022-11-08 16:39:05 +0000 |
| commit | 38e39b6dc14fd88318541728cb34fd8442d59e8a (patch) | |
| tree | 358f6ffac57759854cba3e3a72a67658c6ba2876 /openstackclient/tests/functional/common/test_versions.py | |
| parent | a244bb84e07617dad12dee91bbe63bdca3357b1e (diff) | |
| download | python-openstackclient-38e39b6dc14fd88318541728cb34fd8442d59e8a.tar.gz | |
tests: Convert more functional tests to use 'parse_output'
Change-Id: I1d968181eb196c6df4583c772c67ed58bc7ba585
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Diffstat (limited to 'openstackclient/tests/functional/common/test_versions.py')
| -rw-r--r-- | openstackclient/tests/functional/common/test_versions.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/openstackclient/tests/functional/common/test_versions.py b/openstackclient/tests/functional/common/test_versions.py index adc74ebc..6575671a 100644 --- a/openstackclient/tests/functional/common/test_versions.py +++ b/openstackclient/tests/functional/common/test_versions.py @@ -10,8 +10,6 @@ # License for the specific language governing permissions and limitations # under the License. -import json - from openstackclient.tests.functional import base @@ -21,9 +19,7 @@ class VersionsTests(base.TestCase): def test_versions_show(self): # TODO(mordred) Make this better. The trick is knowing what in the # payload to test for. - cmd_output = json.loads(self.openstack( - 'versions show -f json' - )) + cmd_output = self.openstack('versions show', parse_output=True) self.assertIsNotNone(cmd_output) self.assertIn( "Region Name", |
