Closed HealYouDown closed 4 years ago
what about tests?
Tests should be done in another issue, as you did with your news.
I will wait with writing tests until someone started a test suit, where I can just add mine. I have no plan on how to write tests in Django applications, so I would like to wait until someone creates the necessary files, instead of me doing it wrong.
As django is using the default unittest
Test discovery every file starting with test*.py
should be found and run. Therefore you can just add a test_utils.py
file inside utils
and write the tests using the stdlib unittest
module
I just added tests.
Added a file to add get the last 10 days worth of featured wikipedia articles.
I created a sub-folder called utils, not sure if it is placed correct where it is right now, could not really find documentation on that.
The script returns the last 10 articles, which would then have to be stored in the database whenever the task to get all api related stuff is run.