Skip to content

Test failed 18 jan 2025 #1

@mathben

Description

@mathben

I do the readme.md and installation works, but test fail. I installed python 3.8.20

nix develop
python -m venv .venv
source .venv/bin/activate
poetry install --no-root
cd fixture
npm install
npm run build:happ
cd ..
poetry run pytest

Output

======================================================================================= test session starts =======================================================================================
platform linux -- Python 3.8.20, pytest-7.4.4, pluggy-1.4.0
rootdir: /home/git/holochain-client-python
plugins: asyncio-0.23.4
asyncio: mode=strict
collected 0 items / 3 errors                                                                                                                                                                      

============================================================================================= ERRORS ==============================================================================================
_________________________________________________________________________ ERROR collecting tests/api/admin/client_test.py _________________________________________________________________________
tests/api/admin/client_test.py:2: in <module>
    from holochain_client.api.admin.types import (
holochain_client/api/admin/types.py:219: in <module>
    class AppEnabled:
holochain_client/api/admin/types.py:221: in AppEnabled
    errors: List[Tuple[CellId, str]]
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:804: in __getitem__
    return self.__getitem_inner__(params)
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:261: in inner
    return func(*args, **kwds)
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:830: in __getitem_inner__
    params = tuple(_type_check(p, msg) for p in params)
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:830: in <genexpr>
    params = tuple(_type_check(p, msg) for p in params)
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:149: in _type_check
    raise TypeError(f"{msg} Got {arg!r:.100}.")
E   TypeError: Tuple[t0, t1, ...]: each t must be a type. Got [<class 'bytes'>, <class 'bytes'>].
________________________________________________________________________ ERROR collecting tests/api/admin/signing_test.py _________________________________________________________________________
tests/api/admin/signing_test.py:1: in <module>
    from holochain_client.api.common.signing import (
holochain_client/api/common/signing.py:4: in <module>
    from holochain_client.api.admin.client import AdminClient
holochain_client/api/admin/client.py:4: in <module>
    from holochain_client.api.admin.types import (
holochain_client/api/admin/types.py:219: in <module>
    class AppEnabled:
holochain_client/api/admin/types.py:221: in AppEnabled
    errors: List[Tuple[CellId, str]]
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:804: in __getitem__
    return self.__getitem_inner__(params)
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:261: in inner
    return func(*args, **kwds)
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:830: in __getitem_inner__
    params = tuple(_type_check(p, msg) for p in params)
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:830: in <genexpr>
    params = tuple(_type_check(p, msg) for p in params)
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:149: in _type_check
    raise TypeError(f"{msg} Got {arg!r:.100}.")
E   TypeError: Tuple[t0, t1, ...]: each t must be a type. Got [<class 'bytes'>, <class 'bytes'>].
__________________________________________________________________________ ERROR collecting tests/api/app/client_test.py __________________________________________________________________________
tests/api/app/client_test.py:2: in <module>
    from holochain_client.api.admin.types import (
holochain_client/api/admin/types.py:219: in <module>
    class AppEnabled:
holochain_client/api/admin/types.py:221: in AppEnabled
    errors: List[Tuple[CellId, str]]
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:804: in __getitem__
    return self.__getitem_inner__(params)
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:261: in inner
    return func(*args, **kwds)
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:830: in __getitem_inner__
    params = tuple(_type_check(p, msg) for p in params)
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:830: in <genexpr>
    params = tuple(_type_check(p, msg) for p in params)
../../.pyenv/versions/3.8.20/lib/python3.8/typing.py:149: in _type_check
    raise TypeError(f"{msg} Got {arg!r:.100}.")
E   TypeError: Tuple[t0, t1, ...]: each t must be a type. Got [<class 'bytes'>, <class 'bytes'>].
===================================================================================== short test summary info =====================================================================================
ERROR tests/api/admin/client_test.py - TypeError: Tuple[t0, t1, ...]: each t must be a type. Got [<class 'bytes'>, <class 'bytes'>].
ERROR tests/api/admin/signing_test.py - TypeError: Tuple[t0, t1, ...]: each t must be a type. Got [<class 'bytes'>, <class 'bytes'>].
ERROR tests/api/app/client_test.py - TypeError: Tuple[t0, t1, ...]: each t must be a type. Got [<class 'bytes'>, <class 'bytes'>].
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
======================================================================================== 3 errors in 0.39s ========================================================================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions