diff --git a/swh/deposit/tests/api/test_deposit_private_check.py b/swh/deposit/tests/api/test_deposit_private_check.py index dca61b6c4a14909dcf6a55d76d56dcbf23a11bd4..f582153786c3577cce8db7f9651fcf923f190204 100644 --- a/swh/deposit/tests/api/test_deposit_private_check.py +++ b/swh/deposit/tests/api/test_deposit_private_check.py @@ -59,7 +59,7 @@ def test_deposit_ok( assert response.status_code == status.HTTP_200_OK data = response.json() - assert data["status"] == DEPOSIT_STATUS_VERIFIED + assert data["status"] == DEPOSIT_STATUS_VERIFIED, data deposit = Deposit.objects.get(pk=deposit.id) assert deposit.status == DEPOSIT_STATUS_VERIFIED @@ -202,7 +202,7 @@ def test_check_deposit_metadata_ok( assert response.status_code == status.HTTP_200_OK data = response.json() - assert data["status"] == DEPOSIT_STATUS_VERIFIED + assert data["status"] == DEPOSIT_STATUS_VERIFIED, data deposit = Deposit.objects.get(pk=deposit.id) assert deposit.status == DEPOSIT_STATUS_VERIFIED diff --git a/swh/deposit/tests/data/atom/entry-data-no-origin-url.xml b/swh/deposit/tests/data/atom/entry-data-no-origin-url.xml index 2577103c6e11a2baedcb670531f90f90d10cd9a3..9a183a70537dcc631d967f96da93cedc3bae3e5f 100644 --- a/swh/deposit/tests/data/atom/entry-data-no-origin-url.xml +++ b/swh/deposit/tests/data/atom/entry-data-no-origin-url.xml @@ -5,22 +5,6 @@ <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id> <updated>2017-10-07T15:17:08Z</updated> <author>some awesome author</author> - <applicationCategory>something</applicationCategory> <name>awesome-compiler</name> - <description>This is an awesome compiler destined to -awesomely compile stuff -and other stuff</description> - <keywords>compiler,programming,language</keywords> - <dateCreated>2005-10-07T17:17:08Z</dateCreated> - <datePublished>2005-10-07T17:17:08Z</datePublished> - <releaseNotes>release note</releaseNotes> - <relatedLink>related link</relatedLink> - <sponsor></sponsor> - <programmingLanguage>Awesome</programmingLanguage> - <codeRepository>https://hoster.org/awesome-compiler</codeRepository> - <operatingSystem>GNU/Linux</operatingSystem> - <version>0.0.1</version> - <developmentStatus>running</developmentStatus> - <runtimePlatform>all</runtimePlatform> </entry> diff --git a/swh/deposit/tests/data/atom/entry-data0.xml b/swh/deposit/tests/data/atom/entry-data0.xml index 53d7b679b9a3c0dd6e1ee75e496ae7a5ddde29f2..647dbe9f5dce21f9b93129076a2d55501d992deb 100644 --- a/swh/deposit/tests/data/atom/entry-data0.xml +++ b/swh/deposit/tests/data/atom/entry-data0.xml @@ -5,23 +5,7 @@ <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id> <updated>2017-10-07T15:17:08Z</updated> <author>some awesome author</author> - <applicationCategory>something</applicationCategory> <name>awesome-compiler</name> - <description>This is an awesome compiler destined to -awesomely compile stuff -and other stuff</description> - <keywords>compiler,programming,language</keywords> - <dateCreated>2005-10-07T17:17:08Z</dateCreated> - <datePublished>2005-10-07T17:17:08Z</datePublished> - <releaseNotes>release note</releaseNotes> - <relatedLink>related link</relatedLink> - <sponsor></sponsor> - <programmingLanguage>Awesome</programmingLanguage> - <codeRepository>https://hoster.org/awesome-compiler</codeRepository> - <operatingSystem>GNU/Linux</operatingSystem> - <version>0.0.1</version> - <developmentStatus>running</developmentStatus> - <runtimePlatform>all</runtimePlatform> <swh:deposit> <swh:create_origin> diff --git a/swh/deposit/tests/data/atom/entry-data1.xml b/swh/deposit/tests/data/atom/entry-data1.xml index e1bccc7a4cf0c2cf03176ef356345cb6b3236432..8a75ef12017942516b9fb755ccbc21b750448f72 100644 --- a/swh/deposit/tests/data/atom/entry-data1.xml +++ b/swh/deposit/tests/data/atom/entry-data1.xml @@ -3,21 +3,5 @@ <id>urn:uuid:2225c695-cfb8-4ebb-aaaa-80da344efa6a</id> <updated>2017-10-07T15:17:08Z</updated> <author>some awesome author</author> - <applicationCategory>something</applicationCategory> <name>awesome-compiler</name> - <description>This is an awesome compiler destined to -awesomely compile stuff -and other stuff</description> - <keywords>compiler,programming,language</keywords> - <dateCreated>2005-10-07T17:17:08Z</dateCreated> - <datePublished>2005-10-07T17:17:08Z</datePublished> - <releaseNotes>release note</releaseNotes> - <relatedLink>related link</relatedLink> - <sponsor></sponsor> - <programmingLanguage>Awesome</programmingLanguage> - <codeRepository>https://hoster.org/awesome-compiler</codeRepository> - <operatingSystem>GNU/Linux</operatingSystem> - <version>0.0.1</version> - <developmentStatus>running</developmentStatus> - <runtimePlatform>all</runtimePlatform> </entry>