Closed basaks closed 7 years ago
What's involved before I can run the test case?
I have installed everything except antelope 3rd party module.
I used pytest to run this test like this: pytest tests/css2qml_test.py
pytest tests/css2qml_test.py
tests/css2qml_test.py:128: AssertionError __________________________ test_map_originmag __________________________ def test_map_originmag(): """ Test converter for origin reported/saved magnitudes """ csso = CSS_ORIGIN qmlm = CONV.map_origin2magnitude(csso) assert '@publicID' in qmlm assert 'mag' in qmlm assert qmlm.get('@publicID') == "quakeml:local.test/netmag/296149" assert isclose(qmlm.get('mag', {}).get('value'), 3.45) assert qmlm.get('type') == "ml" assert qmlm.get('originID') == "quakeml:local.test/origin/1371545" assert qmlm.get('evaluationMode') == "manual" assert qmlm.get('evaluationStatus') == "reviewed" cinfo = qmlm.get('creationInfo', {}) > assert cinfo.get('agencyID') == "QQ" E AssertionError: assert 'BRTT' == 'QQ' E - BRTT E + QQ
Is there something I need to do before I run the tests?
I fixed the tests here: https://github.com/basaks/qmlutil # https://github.com/basaks/qmlutil/commit/5845c3418d2b2a12cf264ba374c36b13b936b2ea
What's involved before I can run the test case?
I have installed everything except antelope 3rd party module.
I used pytest to run this test like this:
pytest tests/css2qml_test.py
Is there something I need to do before I run the tests?