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
Nils Philippsen
c5de49c6d8 Tests: Cope with different invocation methods
Depending on how the tests are run (`pytest`, `python -m pytest`, ...),
the program name can be e.g. `pytest` or `pytest.py`. Relax the relevant
tests a bit, this way we don't have to update them every time we change
something related to CLI arguments either.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2020-07-02 12:43:25 +02:00
Pierre-Yves Chibon
03810630ce Introduce the packager_bugzilla_sync toddler
This toddler is meant to be triggered by playtime at regular intervals
and will sync the packager accounts to bugzilla so they can edit flags
on Fedora bugs (for example).

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-07-02 11:18:36 +02:00