Skip to content

Commit

Permalink
Improve charm_upgrade imports and remove test pprints
Browse files Browse the repository at this point in the history
  • Loading branch information
Corey Bryant committed Oct 26, 2023
1 parent 0684a62 commit 1bb67ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
9 changes: 0 additions & 9 deletions unit_tests/utilities/test_zaza_utilities_upgrade_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

import copy
import mock
import pprint

import unit_tests.utils as ut_utils
import zaza.openstack.utilities.upgrade_utils as openstack_upgrade
Expand Down Expand Up @@ -96,8 +95,6 @@ def test_get_upgrade_groups(self):
('Data Plane', ['nova-compute']),
('sweep_up', [])]
actual = openstack_upgrade.get_upgrade_groups()
pprint.pprint(expected)
pprint.pprint(actual)
self.assertEqual(
actual,
expected)
Expand All @@ -111,8 +108,6 @@ def test_get_charm_upgrade_groups(self):
('Data Plane', ['nova-compute']),
('sweep_up', ['neutron-openvswitch', 'ntp'])]
actual = openstack_upgrade.get_charm_upgrade_groups()
pprint.pprint(expected)
pprint.pprint(actual)
self.assertEqual(
actual,
expected)
Expand All @@ -126,8 +121,6 @@ def test_get_series_upgrade_groups(self):
('Data Plane', ['nova-compute']),
('sweep_up', ['ntp'])]
actual = openstack_upgrade.get_series_upgrade_groups()
pprint.pprint(expected)
pprint.pprint(actual)
self.assertEqual(
actual,
expected)
Expand All @@ -141,8 +134,6 @@ def test_get_series_upgrade_groups(self):
('sweep_up', ['ntp'])]
actual = openstack_upgrade.get_series_upgrade_groups(
target_series='focal')
pprint.pprint(expected)
pprint.pprint(actual)
self.assertEqual(
actual,
expected)
Expand Down
4 changes: 2 additions & 2 deletions zaza/openstack/charm_tests/charm_upgrade/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
import zaza.model
from zaza.openstack.utilities import (
cli as cli_utils,
os_versions as os_versions,
upgrade_utils as upgrade_utils,
os_versions,
upgrade_utils,
)


Expand Down

0 comments on commit 1bb67ab

Please sign in to comment.