question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Test failure when following the README

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
poolpitakocommented, Nov 30, 2021

Mac user too, cannot reproduce 😦

Are you able to reproduce it?

Env started working fine after the second source env/bin/activate and I haven’t had the issue again. It’s fine, let’s move on 😃

0reactions
martriaycommented, Nov 30, 2021

Mac user too, cannot reproduce 😦

Are you able to reproduce it?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found