defi-stake-yield-brownie-freecode icon indicating copy to clipboard operation
defi-stake-yield-brownie-freecode copied to clipboard

conftest.py import

Open blackyinsol opened this issue 2 years ago • 1 comments

If someone else also has the following issue when running test_stake_tokens:

Traceback: /usr/lib/python3.8/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/unit/test_token_farm.py:9: in <module> from tests.conftest import amount_staked E ModuleNotFoundError: No module named 'tests.conftest'

Adding an init.py file to the tests folder solved the problem

blackyinsol avatar Apr 26 '22 07:04 blackyinsol

Awesome!

Can you make a PR to update the repo with your change?

PatrickAlphaC avatar Apr 28 '22 23:04 PatrickAlphaC