marketools
marketools copied to clipboard
Write PyTests for Stock
Write tests for all classes/methods/functions in the file stock.py
All the tests are failling with pytest
@tandrade96 what is the working directory path you are running the tests from?
/marketools <= running from here /marketools /analysys /stqscraper /tests
It works for me, perhaps it is some issue with operating system. Are you running it on Windows? I personally use Kubuntu.
Yeah I'm running Windows
El mié, 2 dic 2020 a las 23:27, Albert Ratajczak ([email protected]) escribió:
[image: image] https://user-images.githubusercontent.com/39762396/100892756-f55ce780-34ba-11eb-8c74-48d6a546c94c.png
It works for me, perhaps it is some issue with operating system. Are you running it on Windows? I personally use Kubuntu.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/AlbertRtk/marketools/issues/3#issuecomment-737301994, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADF45ZIJ4MUIWTVWZMQ6TXLSSZMEPANCNFSM4UGQDTMA .
@kushkansara02 did you have similar issue? What is operating system you use?
I tested test_wallet.py, passed all tests. I'm on MacOS
How and from where did you call it?
I'm working now but in a couple hours I can keep trying
El jue, 3 dic 2020 a las 3:19, kushkansara02 ([email protected]) escribió:
[image: Screen Shot 2020-12-02 at 2 18 26 PM] https://user-images.githubusercontent.com/57120148/100920529-41069580-34a9-11eb-95d5-694d8df90405.png I tested test_wallet.py, passed all tests.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/AlbertRtk/marketools/issues/3#issuecomment-737441011, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADF45ZIO6T7H6RLYYAHOZFLSS2HK7ANCNFSM4UGQDTMA .
I use PyCharm. I set the working directory to the root directory (marketools/), and set up a test at the path of test_wallet.py (You can also set the path to the tests folder and pytest will execute all tests within that directory). When I executed that test, everything worked fine.
Solved it, thanks guys!