Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.deposit.tests.api.test_deposit_private_check::test_deposit_ok[tar.gz]
Failed

TEST RESULT

Run At
Nov 20 2020, 3:55 PM
Details
authenticated_client = <rest_framework.test.APIClient object at 0x7f2d3c9fd5f8> deposit_collection = <DepositCollection: {'id': 59, 'name': 'test'}> ready_deposit_ok = <Deposit: {'id': 44, 'reception_date': datetime.datetime(2020, 11, 20, 14, 54, 43, 299, tzinfo=<UTC>), 'collection': 'test', 'external_id': 'external-id-partial', 'client': 'test', 'status': 'deposited'}> extension = 'tar.gz' @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