Skip to content

Conversation

@rihp
Copy link
Contributor

@rihp rihp commented Nov 16, 2022

This error happens when the poetry run pytest assertions returns:


==================================================== FAILURES ====================================================
___________________________________ test_client_config_structure_starts_empty ____________________________________

    def test_client_config_structure_starts_empty():
        ccb = ClientConfigBuilder()
        client_config = ccb.build()
        result = ClientConfig(envs={}, interfaces={}, resolver = None)
>       assert client_config == result
E       assert ClientConfig(envs={}, interfaces={}, resolver=None) == ClientConfig(envs={}, interfaces={}, resolver=None)

tests/test_clientconfig.py:9: AssertionError
_____________________________________ test_client_config_structure_sets_env ______________________________________

    def test_client_config_structure_sets_env():
        ccb = ClientConfigBuilder()
        uri = Uri("wrap://ens/eth.plugin.one"),
        env = { 'color': "red", 'size': "small" }
        ccb = ccb.set_env(
            uri = uri,
            env = env
            )
        client_config = ccb.build()
>       assert client_config == ClientConfig(envs={uri: env}, interfaces={}, resolver = None)
E       AssertionError: assert ClientConfig(envs={(Uri(wrap://ens/eth.plugin.one),): {'color': 'red', 'size': 'small'}}, interfaces={}, resolver=None) == ClientConfig(envs={(Uri(wrap://ens/eth.plugin.one),): {'color': 'red', 'size': 'small'}}, interfaces={}, resolver=None)
E        +               where ClientConfig(envs={(Uri(wrap://ens/eth.plugin.one),): {'color': 'red', 'size': 'small'}}, interfaces={}, resolver=None) = ClientConfig(envs={(Uri(wrap://ens/eth.plugin.one),): {'color': 'red', 'size': 'small'}}, interfaces={}, resolver=None)

tests/test_clientconfig.py:21: `AssertionError`

It seems like there is the same output exactly, but it's still not asserted.

@rihp
Copy link
Contributor Author

rihp commented Nov 18, 2022

Closing this PR and deleting branch as newest changes are now squashed into this one:

@rihp rihp closed this Nov 18, 2022
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

Successfully merging this pull request may close these issues.

2 participants