authenticated_client = <rest_framework.test.APIClient object at 0x7f2d3c981cf8>
deposit_collection = <DepositCollection: {'id': 57, 'name': 'test'}>
ready_deposit_ok = <Deposit: {'id': 42, 'reception_date': datetime.datetime(2020, 11, 20, 14, 54, 41, 730969, tzinfo=<UTC>), 'collection': 'test', 'external_id': 'external-id-partial', 'client': 'test', 'status': 'deposited'}>
extension = 'zip'
@pytest.mark.parametrize("extension", ["zip", "tar", "tar.gz", "tar.bz2", "tar.xz"])
def test_deposit_ok(
authenticated_client, deposit_collection, ready_deposit_ok, extension
):
"""Proper deposit should succeed the checks (-> status ready)
"""
deposit = ready_deposit_ok
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:54: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Nov 20 2020, 3:55 PM