Page MenuHomeSoftware Heritage
Paste P1422

test ko
ActivePublic

Authored by bchauvet on Aug 17 2022, 12:00 PM.
(swh) ben@ben-deb:~/swh-environment/swh-web(rename-denied-status *)$ pytest swh/web/tests/add_forge_now/test_models.py::test_allowed_next_statuses
========================================================== test session starts ==========================================================
platform linux -- Python 3.9.2, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
django: settings: swh.web.settings.tests (from ini)
rootdir: /home/ben/swh-environment/swh-web, configfile: pytest.ini
plugins: hypothesis-6.38.0, requests-mock-1.9.3, redis-2.4.0, asyncio-0.18.1, forked-1.4.0, xdist-2.5.0, dash-2.2.0, django-test-migrations-1.2.0, postgresql-3.1.3, django-4.5.2, mock-3.7.0, swh.core-2.2.1, swh.journal-1.0.1.dev1+gda32c0e
asyncio: mode=strict
collected 3 items
swh/web/tests/add_forge_now/test_models.py EEE [100%]
================================================================ ERRORS =================================================================
______________________ ERROR at setup of test_allowed_next_statuses[RequestStatus.PENDING-allowed_next_statuses0] _______________________
@pytest.fixture(scope="function", autouse=True)
def tests_data():
> data = get_tests_data(reset=True)
swh/web/tests/conftest.py:221:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
swh/web/tests/data.py:508: in get_tests_data
_tests_data = _init_tests_data()
swh/web/tests/data.py:249: in _init_tests_data
loader = GitLoaderFromArchive(
../swh-loader-git/swh/loader/git/from_disk.py:404: in __init__
super().__init__(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <swh.loader.git.from_disk.GitLoaderFromArchive object at 0x7febfb286790>
storage = <swh.storage.in_memory.InMemoryStorage object at 0x7fec1075d400>, url = 'https://github.com/memononen/libtess2'
visit_date = None, directory = None, kwargs = {}
def __init__(
self,
storage: StorageInterface,
url: str,
visit_date: Optional[datetime] = None,
directory: Optional[str] = None,
**kwargs,
):
> super().__init__(storage=storage, origin_url=url, **kwargs)
E TypeError: __init__() missing 1 required positional argument: 'url'
../swh-loader-git/swh/loader/git/from_disk.py:104: TypeError
________________ ERROR at setup of test_allowed_next_statuses[RequestStatus.WAITING_FOR_FEEDBACK-allowed_next_statuses1] ________________
@pytest.fixture(scope="function", autouse=True)
def tests_data():
> data = get_tests_data(reset=True)
swh/web/tests/conftest.py:221:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
swh/web/tests/data.py:508: in get_tests_data
_tests_data = _init_tests_data()
swh/web/tests/data.py:249: in _init_tests_data
loader = GitLoaderFromArchive(
../swh-loader-git/swh/loader/git/from_disk.py:404: in __init__
super().__init__(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <swh.loader.git.from_disk.GitLoaderFromArchive object at 0x7febfb20a9a0>
storage = <swh.storage.in_memory.InMemoryStorage object at 0x7febfb20bd00>, url = 'https://github.com/memononen/libtess2'
visit_date = None, directory = None, kwargs = {}
def __init__(
self,
storage: StorageInterface,
url: str,
visit_date: Optional[datetime] = None,
directory: Optional[str] = None,
**kwargs,
):
> super().__init__(storage=storage, origin_url=url, **kwargs)
E TypeError: __init__() missing 1 required positional argument: 'url'
../swh-loader-git/swh/loader/git/from_disk.py:104: TypeError
_________________ ERROR at setup of test_allowed_next_statuses[RequestStatus.FEEDBACK_TO_HANDLE-allowed_next_statuses2] _________________
@pytest.fixture(scope="function", autouse=True)
def tests_data():
> data = get_tests_data(reset=True)
swh/web/tests/conftest.py:221:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
swh/web/tests/data.py:508: in get_tests_data
_tests_data = _init_tests_data()
swh/web/tests/data.py:249: in _init_tests_data
loader = GitLoaderFromArchive(
../swh-loader-git/swh/loader/git/from_disk.py:404: in __init__
super().__init__(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <swh.loader.git.from_disk.GitLoaderFromArchive object at 0x7febfb1d2d30>
storage = <swh.storage.in_memory.InMemoryStorage object at 0x7febfb169a60>, url = 'https://github.com/memononen/libtess2'
visit_date = None, directory = None, kwargs = {}
def __init__(
self,
storage: StorageInterface,
url: str,
visit_date: Optional[datetime] = None,
directory: Optional[str] = None,
**kwargs,
):
> super().__init__(storage=storage, origin_url=url, **kwargs)
E TypeError: __init__() missing 1 required positional argument: 'url'
../swh-loader-git/swh/loader/git/from_disk.py:104: TypeError
=========================================================== warnings summary ============================================================
../swh-vault/swh/vault/__init__.py:42
/home/ben/swh-environment/swh-vault/swh/vault/__init__.py:42: DeprecationWarning: Explicit "args" key is deprecated, use keys directly instead.
warnings.warn(
../swh-core/swh/core/db/pytest_plugin.py:42
/home/ben/swh-environment/swh-core/swh/core/db/pytest_plugin.py:42: DeprecationWarning: This pytest plugin is deprecated, it should not be used any more.
warnings.warn(
swh/web/tests/add_forge_now/test_models.py::test_allowed_next_statuses[RequestStatus.PENDING-allowed_next_statuses0]
swh/web/tests/add_forge_now/test_models.py::test_allowed_next_statuses[RequestStatus.WAITING_FOR_FEEDBACK-allowed_next_statuses1]
swh/web/tests/add_forge_now/test_models.py::test_allowed_next_statuses[RequestStatus.FEEDBACK_TO_HANDLE-allowed_next_statuses2]
/home/ben/swh-environment/swh-web/swh/web/tests/data.py:249: DeprecationWarning: Call to deprecated class GitLoaderFromDisk. (Use `swh.loader.git.loader.GitLoader` instead) -- Deprecated since version 1.1.
loader = GitLoaderFromArchive(
-- Docs: https://docs.pytest.org/en/stable/warnings.html
======================================================== short test summary info ========================================================
ERROR swh/web/tests/add_forge_now/test_models.py::test_allowed_next_statuses[RequestStatus.PENDING-allowed_next_statuses0] - TypeError...
ERROR swh/web/tests/add_forge_now/test_models.py::test_allowed_next_statuses[RequestStatus.WAITING_FOR_FEEDBACK-allowed_next_statuses1]
ERROR swh/web/tests/add_forge_now/test_models.py::test_allowed_next_statuses[RequestStatus.FEEDBACK_TO_HANDLE-allowed_next_statuses2]
===================================================== 5 warnings, 3 errors in 0.28s =====================================================