PatrickAlphaC / defi-stake-yield-brownie-freecode

53 stars 63 forks source link

conftest.py import #23

Open blackyinsol opened 2 years ago

blackyinsol commented 2 years ago

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

PatrickAlphaC commented 2 years ago

Awesome!

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