Commit graph

4 commits

Author SHA1 Message Date
Nils Philippsen
7fe0937190 Using real objects is considered polite
Previously, ToddlerBase and derived classes were used directly, but none
of the methods is marked as a class or static method. Amazingly enough,
it worked regardless. It's useful to have a constructor, though, so do
things conventionally.

As we can't just monkey-patch the classes then, use the shared `toddler`
fixture which creates the object for the test methods that need it.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2020-07-17 17:39:28 +02:00
Nils Philippsen
8be9cead78 Fix import order, separation to appease flake8
Signed-off-by: Nils Philippsen <nils@redhat.com>
2020-07-02 12:51:48 +02:00
Pierre-Yves Chibon
7af467ef1d Make the tests flake8 valid and enforce it in tox
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-06-26 15:18:09 +00:00
Pierre-Yves Chibon
edeafd6159 Add unit-tests for toddlers
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-06-19 17:10:01 +02:00