
Moves tests out of subfolders so they can be picked up by tox/jenkins Change-Id: I76369941dff73774f55dd77efd8d396fa9942d7d
16 lines
549 B
Python
Executable File
16 lines
549 B
Python
Executable File
"""Get configuration module unittests."""
|
|
from mock import patch
|
|
|
|
from orm.tests.unit.cms import FunctionalTest
|
|
|
|
|
|
class TestGetConfiguration(FunctionalTest):
|
|
"""Main get configuration test case."""
|
|
|
|
@patch('orm.common.orm_common.utils.utils.report_config')
|
|
def test_get_configuration_success(self, mock_report):
|
|
"""Test get_configuration returns the expected value on success."""
|
|
mock_report.return_value = '12345'
|
|
response = self.app.get('/v1/orm/configuration')
|
|
self.assertEqual(response.json, '12345')
|