"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "monasca_api/tests/db/test_fingerprint.py" between
monasca-api-3.1.0.tar.gz and monasca-api-4.0.0.tar.gz

About: OpenStack Monasca API is a RESTful API server that is designed with a layered architecture and supports Monitoring as a Service (MONaaS).
The "Ussuri" series (latest release).

test_fingerprint.py  (monasca-api-3.1.0):test_fingerprint.py  (monasca-api-4.0.0)
skipping to change at line 16 skipping to change at line 16
# #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
# 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.
import hashlib import hashlib
import mock from unittest import mock
import monasca_api.db.fingerprint as fingerprint import monasca_api.db.fingerprint as fingerprint
from monasca_api.tests import base from monasca_api.tests import base
class TestFingerprint(base.BaseTestCase): class TestFingerprint(base.BaseTestCase):
@mock.patch('monasca_api.db.fingerprint.Fingerprint._get_metadata') @mock.patch('monasca_api.db.fingerprint.Fingerprint._get_metadata')
@mock.patch('monasca_api.db.fingerprint.Fingerprint._get_schema_raw') @mock.patch('monasca_api.db.fingerprint.Fingerprint._get_schema_raw')
def test_get_schema_raw_pre_alembic(self, mock_schema_raw, mock_metadata): def test_get_schema_raw_pre_alembic(self, mock_schema_raw, mock_metadata):
mock_schema_raw.return_value = 'dummy_schema_raw' mock_schema_raw.return_value = 'dummy_schema_raw'
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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