Test failure when following the README
See original GitHub issueI have followed the README file and when I try to run tests with pytest I get the following error:
(env) user@users-MBP cairo-contracts % pytest
========================================================= test session starts =========================================================
platform darwin -- Python 3.8.7, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
rootdir: /Users/user/dev/cairo-contracts
plugins: web3-5.24.0, hypothesis-6.24.0, eth-brownie-1.17.1, xdist-1.34.0, forked-1.3.0
collected 0 items / 5 errors                                                                                                          
=============================================================== ERRORS ================================================================
_______________________________________________ ERROR collecting tests/test_Account.py ________________________________________________
ImportError while importing test module '/Users/user/dev/cairo-contracts/tests/test_Account.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../.pyenv/versions/3.8.7/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_Account.py:3: in <module>
    from starkware.starknet.testing.starknet import Starknet
E   ModuleNotFoundError: No module named 'starkware'
shouldn’t nile install take care of the dependencies?
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (4 by maintainers)
 Top Results From Across the Web
Top Results From Across the Web
'bit add', 'bit build' and 'bit test' fail when README.md added to ...
Describe the bug Trying to include a README.md in the component folder as per the instructions shown in an empty collection, but fails...
Read more >How do show my tests passing/failing in Github?
I've been unable to find any documentation on how to make the test status display. How can I make Github show unit test...
Read more >Gating on README updates - Viktor Adam's blog
When a new command line flag is added, or the usage string changes for an existing one, this simple test will make sure...
Read more >README.md
To skip a test suite, put a @Skip annotation at the top of the file: @Skip("currently failing (see issue 1234)") import "package:test/test. dart";...
Read more >Chapter 1 R package with unit tests | Tutorials - Lisa DeBruine
Run devtools::test() after you add each test to make sure your tests work as expected. 1.8 Documentation. Now it's time to edit your...
Read more > Top Related Medium Post
Top Related Medium Post
No results found
 Top Related StackOverflow Question
Top Related StackOverflow Question
No results found
 Troubleshoot Live Code
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free Top Related Reddit Thread
Top Related Reddit Thread
No results found
 Top Related Hackernoon Post
Top Related Hackernoon Post
No results found
 Top Related Tweet
Top Related Tweet
No results found
 Top Related Dev.to Post
Top Related Dev.to Post
No results found
 Top Related Hashnode Post
Top Related Hashnode Post
No results found

Env started working fine after the second
source env/bin/activateand I haven’t had the issue again. It’s fine, let’s move on 😃Mac user too, cannot reproduce 😦
Are you able to reproduce it?