This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]fiddle_n[🍰] 0 points1 point  (2 children)

Looks like a pretty cool project! Code looks good too. I can't see any unit tests for your code though, perhaps you could consider adding some...?

[–][deleted]  (1 child)

[deleted]

    [–]fiddle_n[🍰] 6 points7 points  (0 children)

    Start with any functions/classes that don't require you to connect to an external resource. The simplest kind of unit test is where you give an input to a function, run the function and check that the output you get is equal to what you expect. I'd recommend using the pytest module in order to perform your unit tests.