swh_config = '/tmp/pytest-of-jenkins/pytest-0/test_npm_artifact_json_issues0/loader.yml'
requests_mock_datadir = <requests_mock.mocker.Mocker object at 0x7f9c7911fe48>
def test_npm_artifact_json_issues(swh_config, requests_mock_datadir):
"""With garbage characters, the loading should pass nonetheless
"""
package = "jammit-express-json-issue"
url = package_url(package)
loader = NpmLoader(url)
actual_load_status = loader.load()
> assert actual_load_status["status"] == "eventful"
E AssertionError: assert 'uneventful' == 'eventful'
E - eventful
E + uneventful
E ? ++
.tox/py3/lib/python3.7/site-packages/swh/loader/package/npm/tests/test_npm.py:597: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Jul 1 2020, 11:27 AM