GCCempt / GCC_OpenSong_bot

We were lazy and didn't want to do things by hand so instead we spent hundreds of manhours automating it. classic.
http://gccpraise.com/
2 stars 0 forks source link

Feature/test improvements #84

Closed AllDayJon closed 3 years ago

AllDayJon commented 3 years ago

Added automated testing workflow to run only during the build of the image, or during a pull request. (Also made a few minor code improvements here and there I discovered while running tests)

Added a couple of new helper functions and tests:

https://github.com/GCCempt/GCC_OpenSong_bot/blob/f56ccd9f187c2ecdf965fcfb6305d1ecd5cd2d8a/utils.py#L271-L286

https://github.com/GCCempt/GCC_OpenSong_bot/blob/f56ccd9f187c2ecdf965fcfb6305d1ecd5cd2d8a/utils.py#L289-L312

https://github.com/GCCempt/GCC_OpenSong_bot/blob/f56ccd9f187c2ecdf965fcfb6305d1ecd5cd2d8a/tests.py#L7-L54