authenticated_client = <rest_framework.test.APIClient object at 0x7f2d3c936828>
deposit_collection = <DepositCollection: {'id': 69, 'name': 'test'}>
ready_deposit_ok = <Deposit: {'id': 54, 'reception_date': datetime.datetime(2020, 11, 20, 14, 54, 48, 859720, tzinfo=<UTC>), 'collection': 'test', 'external_id': 'external-id-partial', 'client': 'test', 'status': 'deposited'}>
def test_check_deposit_metadata_ok(
authenticated_client, deposit_collection, ready_deposit_ok
):
"""Proper deposit should succeed the checks (-> status ready)
with all **MUST** metadata
using the codemeta metadata test set
"""
deposit = ready_deposit_ok
assert deposit.status == DEPOSIT_STATUS_DEPOSITED
for url in private_check_url_endpoints(deposit_collection, deposit):
response = authenticated_client.get(url)
assert response.status_code == status.HTTP_200_OK
data = response.json()
> assert data["status"] == DEPOSIT_STATUS_VERIFIED
E AssertionError: assert 'rejected' == 'verified'
E - verified
E + rejected
.tox/py3/lib/python3.7/site-packages/swh/deposit/tests/api/test_deposit_private_check.py:165: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Nov 20 2020, 3:55 PM