"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "solum/tests/cmd/test_status.py" between
solum-9.0.0.tar.gz and solum-10.0.0.tar.gz

About: OpenStack Solum is designed to make cloud services easier to consume and integrate into your application development process.
The "Wallaby" series (latest release).

test_status.py  (solum-9.0.0):test_status.py  (solum-10.0.0)
skipping to change at line 18 skipping to change at line 18
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from oslo_upgradecheck.upgradecheck import Code from oslo_upgradecheck.upgradecheck import Code
from solum.cmd import status from solum.cmd import status
from solum import config
from solum.tests import base from solum.tests import base
class TestUpgradeChecks(base.BaseTestCase): class TestUpgradeChecks(base.BaseTestCase):
def setUp(self): def setUp(self):
super(TestUpgradeChecks, self).setUp() super(TestUpgradeChecks, self).setUp()
config.parse_args(argv=[])
self.cmd = status.Checks() self.cmd = status.Checks()
def test__check_placeholder(self): def test_checks(self):
check_result = self.cmd._check_placeholder() for name, func in self.cmd._upgrade_checks:
self.assertEqual( if isinstance(func, tuple):
Code.SUCCESS, check_result.code) func_name, kwargs = func
result = func_name(self, **kwargs)
else:
result = func(self)
self.assertEqual(Code.SUCCESS, result.code)
 End of changes. 3 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)