Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.deposit.tests.api.test_collection_post_atom::test_post_deposit_atom_201_even_with_decimal
Failed

TEST RESULT

Run At
Feb 23 2022, 1:52 PM
Details
authenticated_client = <rest_framework.test.APIClient object at 0x7f7cf88079b0> deposit_collection = <DepositCollection: {'id': 19, 'name': 'test'}> atom_dataset = {'codemeta-sample': '<?xml version="1.0"?>\n <entry xmlns="http://www.w3.org/2005/Atom"\n xmlns:d...ntry>\n', 'entry-data-empty-body': '<?xml version="1.0"?>\n<entry xmlns="http://www.w3.org/2005/Atom"></entry>\n', ...} def test_post_deposit_atom_201_even_with_decimal( authenticated_client, deposit_collection, atom_dataset ): """Posting an initial atom entry should return 201 with deposit receipt """ atom_error_with_decimal = atom_dataset["error-with-decimal"] response = post_atom( authenticated_client, reverse(COL_IRI, args=[deposit_collection.name]), data=atom_error_with_decimal, HTTP_SLUG="external-id", HTTP_IN_PROGRESS="false", ) # then > assert response.status_code == status.HTTP_201_CREATED, response.content.decode() E AssertionError: <?xml version="1.0" encoding="utf-8"?> E <sword:error xmlns="http://www.w3.org/2005/Atom" E xmlns:sword="http://purl.org/net/sword/terms/"> E <summary>Malformed xml metadata</summary> E <sword:treatment>processing failed</sword:treatment> E E <sword:verboseDescription> E The xml received is malformed. Please ensure your metadata file is correctly formatted. E </sword:verboseDescription> E E </sword:error> E E assert 400 == 201 E +400 E -201 .tox/py3/lib/python3.7/site-packages/swh/deposit/tests/api/test_collection_post_atom.py:122: AssertionError