Changeset View
Changeset View
Standalone View
Standalone View
swh/deposit/tests/api/test_deposit_list.py
# Copyright (C) 2017-2019 The Software Heritage developers | # Copyright (C) 2017-2019 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
import pytest | |||||
from django.urls import reverse | from django.urls import reverse | ||||
from rest_framework import status | from rest_framework import status | ||||
from swh.deposit.api.converters import convert_status_detail | from swh.deposit.api.converters import convert_status_detail | ||||
from swh.deposit.config import ( | from swh.deposit.config import ( | ||||
DEPOSIT_STATUS_PARTIAL, PRIVATE_LIST_DEPOSITS, DEPOSIT_STATUS_DEPOSITED | DEPOSIT_STATUS_PARTIAL, PRIVATE_LIST_DEPOSITS, DEPOSIT_STATUS_DEPOSITED | ||||
) | ) | ||||
@pytest.mark.django_db | |||||
def test_deposit_list( | def test_deposit_list( | ||||
partial_deposit, deposited_deposit, authenticated_client): | partial_deposit, deposited_deposit, authenticated_client): | ||||
"""Deposit list api should return the deposits | """Deposit list api should return the deposits | ||||
""" | """ | ||||
status_detail = { | status_detail = { | ||||
'url': { | 'url': { | ||||
'summary': 'At least one compatible url field. Failed', | 'summary': 'At least one compatible url field. Failed', | ||||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |