Giacomo Leidi b66c94c8a2
Add publish command. (#167)
* Add publish command.

* publish: Add tests.

* Add list-platforms and test-configuration.

* Update Guix dependencies.

* Move publishing of events and publications to retry.
2022-05-17 23:14:52 +02:00

12 lines
263 B
Python

import pytest
from mobilizon_reshare.models.publisher import Publisher
@pytest.fixture(scope="function")
async def mock_active_publishers(request, monkeypatch):
for name in request.param:
await Publisher.create(name=name)
return request.param