PatrickAlphaC / brownie_fund_me

26 stars 64 forks source link

brownie test no test ran in 0.01s #19

Closed DarrenWayn closed 2 years ago

DarrenWayn commented 2 years ago

image i run brownie test for tests folder but no tests ran in 0.01s, anybody know what is the problem?

Dcamy commented 2 years ago

Hi @DarrenWayn, just wondering what happens when you run the other two commands?

brownie test should return 2 passed,

brownie test -k test_only_owner_can_withdraw --network rinkeby should return 1 skipped, 1 deselected

and

brownie test -k test_only_owner_can_withdraw --network development should return 1 passed, 1 deselected

Also noticed on line 4 from brownie import network - network is white, while green for me and the video... maybe something to look into 🤷‍♂️

image

PatrickAlphaC commented 2 years ago

For some reason, your tests are in a __pycache__ folder.

Can you delete your tests folder, make a new one, and put the tests in there?