Closed Ticketedmoon closed 6 years ago
Great work. Could you move the tests to tests/test_recorder.py
? (We added this structure yesterday.)
All done now.
tests/test_recorder.py:5: in <module>
from recorder import Recorder
E ModuleNotFoundError: No module named 'recorder'
😅
I don't know what to do here. Maybe from timelapse.recorder import Recorder
?
Should be good now, my bad.
Build still seems to be failing, I'll look into it
Not sure why the build is failing. It's something to do python not registering the project as a package hierarchy, so you can't import between modules. If you run it manually however, the tests should work.
Shane,
I moved the code into its own subfolder named timelapse
and that did the trick. This is a best practice according to the docs. Your original commits are part of the rollup in #15.
Would you be okay with merging #15 and closing this one? (Note: This still counts as a contribution to Hacktoberfest of course, if that is interesting to you. 😉)
It is for Hacktoberfest yup and gladly! I'll merge and close once I get home.
I just added a test directory to work from as well as 4 unit tests revolving around the Recorder class.