Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples and Tests are failing in isolated conda environment #349

Open
MementoRC opened this issue Sep 18, 2024 · 0 comments
Open

Examples and Tests are failing in isolated conda environment #349

MementoRC opened this issue Sep 18, 2024 · 0 comments

Comments

@MementoRC
Copy link

The recipe:

test:
  imports:
    - pyinjective
  source_files:
    - tests
    - examples
    - pyproject.toml
  requires:
    - pip
    - poetry
    - pytest
    - pytest-asyncio
    - pytest-grpc
    - requests-mock
  commands:
    - pip check
    # Documented (incorrectly) examples do not work
    # - poetry run python examples/exchange_client/spot_exchange_rpc/8_StreamOrderbookUpdate.py
    # - poetry run python examples/chain_client/3_MessageBroadcaster.py

    # All tests are failing
    # - poetry run pytest -v

Fails with:


+ poetry run pytest -v
/home/conda/feedstock_root/build_artifacts/injective-py_1726695263792/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/lib/python3.12/site-packages/pytest_asyncio/plugin.py:208: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
============================= test session starts ==============================
platform linux -- Python 3.12.5, pytest-8.3.3, pluggy-1.5.0 -- $PREFIX/bin/python3.12
cachedir: .pytest_cache
rootdir: $SRC_DIR
configfile: pyproject.toml
testpaths: tests
plugins: grpc-0.8.0, asyncio-0.24.0, web3-6.16.0, requests-mock-1.12.1
asyncio: mode=Mode.STRICT, default_loop_scope=None
collecting ... collected 491 items

tests/client/chain/grpc/test_chain_grpc_auction_api.py::TestChainGrpcAuctionApi::test_fetch_module_params FAILED [  0%]
tests/client/chain/grpc/test_chain_grpc_auction_api.py::TestChainGrpcAuctionApi::test_fetch_module_state FAILED [  0%]
tests/client/chain/grpc/test_chain_grpc_auction_api.py::TestChainGrpcAuctionApi::test_fetch_module_state_when_no_highest_bid_present FAILED [  0%]
tests/client/chain/grpc/test_chain_grpc_auction_api.py::TestChainGrpcAuctionApi::test_fetch_current_basket FAILED [  0%]
tests/client/chain/grpc/test_chain_grpc_auth_api.py::TestChainGrpcAuthApi::test_fetch_module_params FAILED [  1%]
tests/client/chain/grpc/test_chain_grpc_auth_api.py::TestChainGrpcAuthApi::test_fetch_account FAILED [  1%]
tests/client/chain/grpc/test_chain_grpc_auth_api.py::TestChainGrpcAuthApi::test_fetch_accounts FAILED [  1%]
tests/client/chain/grpc/test_chain_grpc_authz_api.py::TestChainGrpcAuthZApi::test_fetch_grants FAILED [  1%]
tests/client/chain/grpc/test_chain_grpc_authz_api.py::TestChainGrpcAuthZApi::test_fetch_granter_grants FAILED [  1%]
tests/client/chain/grpc/test_chain_grpc_authz_api.py::TestChainGrpcAuthZApi::test_fetch_grantee_grants FAILED [  2%]
tests/client/chain/grpc/test_chain_grpc_bank_api.py::TestChainGrpcBankApi::test_fetch_module_params FAILED [  2%]
tests/client/chain/grpc/test_chain_grpc_bank_api.py::TestChainGrpcBankApi::test_fetch_balance FAILED [  2%]
tests/client/chain/grpc/test_chain_grpc_bank_api.py::TestChainGrpcBankApi::test_fetch_balances FAILED [  2%]
tests/client/chain/grpc/test_chain_grpc_bank_api.py::TestChainGrpcBankApi::test_fetch_spendable_balances FAILED [  2%]
tests/client/chain/grpc/test_chain_grpc_bank_api.py::TestChainGrpcBankApi::test_fetch_spendable_balances_by_denom FAILED [  3%]
tests/client/chain/grpc/test_chain_grpc_bank_api.py::TestChainGrpcBankApi::test_fetch_total_supply FAILED [  3%]
tests/client/chain/grpc/test_chain_grpc_bank_api.py::TestChainGrpcBankApi::test_fetch_supply_of FAILED [  3%]
tests/client/chain/grpc/test_chain_grpc_bank_api.py::TestChainGrpcBankApi::test_fetch_denom_metadata FAILED [  3%]
tests/client/chain/grpc/test_chain_grpc_bank_api.py::TestChainGrpcBankApi::test_fetch_denoms_metadata FAILED [  3%]
tests/client/chain/grpc/test_chain_grpc_bank_api.py::TestChainGrpcBankApi::test_fetch_denom_owners FAILED [  4%]
tests/client/chain/grpc/test_chain_grpc_bank_api.py::TestChainGrpcBankApi::test_fetch_send_enabled FAILED [  4%]
tests/client/chain/grpc/test_chain_grpc_distribution_api.py::TestChainGrpcAuthApi::test_fetch_module_params FAILED [  4%]
tests/client/chain/grpc/test_chain_grpc_distribution_api.py::TestChainGrpcAuthApi::test_fetch_validator_distribution_info FAILED [  4%]
tests/client/chain/grpc/test_chain_grpc_distribution_api.py::TestChainGrpcAuthApi::test_fetch_validator_outstanding_rewards FAILED [  4%]
tests/client/chain/grpc/test_chain_grpc_distribution_api.py::TestChainGrpcAuthApi::test_fetch_validator_commission FAILED [  5%]
tests/client/chain/grpc/test_chain_grpc_distribution_api.py::TestChainGrpcAuthApi::test_fetch_validator_slashes FAILED [  5%]
tests/client/chain/grpc/test_chain_grpc_distribution_api.py::TestChainGrpcAuthApi::test_fetch_delegation_rewards FAILED [  5%]
tests/client/chain/grpc/test_chain_grpc_distribution_api.py::TestChainGrpcAuthApi::test_fetch_delegation_total_rewards FAILED [  5%]
tests/client/chain/grpc/test_chain_grpc_distribution_api.py::TestChainGrpcAuthApi::test_fetch_delegator_validators FAILED [  5%]
tests/client/chain/grpc/test_chain_grpc_distribution_api.py::TestChainGrpcAuthApi::test_fetch_delegator_withdraw_address FAILED [  6%]
tests/client/chain/grpc/test_chain_grpc_distribution_api.py::TestChainGrpcAuthApi::test_fetch_community_pool FAILED [  6%]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant