Concerned-Coyotes / summer-code-jam-2020

The repository for the 2020 summer code jam. Find more information at https://pythondiscord.com/pages/code-jams/code-jam-7/
MIT License
0 stars 0 forks source link

Wikipedia featured articles #21

Closed HealYouDown closed 4 years ago

HealYouDown commented 4 years ago

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.

MushroomMaula commented 4 years ago

what about tests?

HealYouDown commented 4 years ago

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.

MushroomMaula commented 4 years ago

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

HealYouDown commented 4 years ago

I just added tests.