swh-lister/swh/lister/opam
Antoine R. Dumont (@ardumont) b69b0b7fd6
opam: Move the state initialization into the get_pages method
We should avoid side-effects in the constructor as much as possible. That avoids
surprising behavior at object instantiation time. The state if needed must be
initialized into the `swh.lister.pattern.Lister.get_pages` method, as preconized in the
class docstring.

This also fixes the current test that actually bootstrap a real opam local "clone" in
/tmp.

Related to T3590
2021-09-21 11:17:16 +02:00
..
tests opam: Move the state initialization into the get_pages method 2021-09-21 11:17:16 +02:00
__init__.py add opam lister 2021-07-06 15:19:00 +02:00
lister.py opam: Move the state initialization into the get_pages method 2021-09-21 11:17:16 +02:00
tasks.py add opam lister 2021-07-06 15:19:00 +02:00