mirror of
https://github.com/Tech-Workers-Coalition-Italia/mobilizon-reshare.git
synced 2025-01-15 18:16:56 +01:00
2c8063cf4a
* fixed visualization * simplified tests * split into files * refactored test expected publications * split update tests * expanded specifications and tests * added event_status window tests * fixed 'all' command * renamed everything * fixed uppercase
12 lines
363 B
Python
12 lines
363 B
Python
import pytest
|
|
|
|
from mobilizon_reshare.models.publisher import Publisher
|
|
|
|
|
|
@pytest.mark.asyncio
|
|
async def test_publisher_create(publisher_model_generator):
|
|
publisher_model = publisher_model_generator()
|
|
await publisher_model.save()
|
|
publisher_db = await Publisher.filter(name="publisher_1").first()
|
|
assert publisher_db.account_ref == "account_ref_1"
|