2021-08-14 18:23:55 +02:00
|
|
|
import pytest
|
|
|
|
|
2021-08-16 10:49:52 +02:00
|
|
|
from mobilizon_reshare.models.publisher import Publisher
|
2021-08-14 18:23:55 +02:00
|
|
|
|
|
|
|
|
2021-11-24 23:58:06 +01:00
|
|
|
@pytest.fixture(scope="function")
|
|
|
|
async def mock_active_publishers(request, monkeypatch):
|
|
|
|
for name in request.param:
|
|
|
|
await Publisher.create(name=name)
|
2021-08-14 18:23:55 +02:00
|
|
|
|
2021-11-24 23:58:06 +01:00
|
|
|
return request.param
|