marketools icon indicating copy to clipboard operation
marketools copied to clipboard

Write PyTests for Stock

Open AlbertRtk opened this issue 4 years ago • 10 comments

Write tests for all classes/methods/functions in the file stock.py

AlbertRtk avatar Nov 29 '20 13:11 AlbertRtk

All the tests are failling with pytest

image

tandrade96 avatar Dec 02 '20 00:12 tandrade96

@tandrade96 what is the working directory path you are running the tests from?

AlbertRtk avatar Dec 02 '20 05:12 AlbertRtk

/marketools <= running from here /marketools /analysys /stqscraper /tests

tandrade96 avatar Dec 02 '20 14:12 tandrade96

image

It works for me, perhaps it is some issue with operating system. Are you running it on Windows? I personally use Kubuntu.

AlbertRtk avatar Dec 02 '20 15:12 AlbertRtk

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 .

tandrade96 avatar Dec 02 '20 15:12 tandrade96

@kushkansara02 did you have similar issue? What is operating system you use?

AlbertRtk avatar Dec 02 '20 16:12 AlbertRtk

Screen Shot 2020-12-02 at 2 18 26 PM I tested test_wallet.py, passed all tests. I'm on MacOS

kushkansara02 avatar Dec 02 '20 19:12 kushkansara02

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 .

tandrade96 avatar Dec 02 '20 19:12 tandrade96

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.

kushkansara02 avatar Dec 02 '20 19:12 kushkansara02

Solved it, thanks guys!

tandrade96 avatar Dec 03 '20 01:12 tandrade96