mirror of
https://github.com/Tech-Workers-Coalition-Italia/mobilizon-reshare.git
synced 2025-01-29 00:29:40 +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
13 lines
448 B
Python
13 lines
448 B
Python
import pytest
|
|
|
|
from mobilizon_reshare.models.notification import Notification, NotificationStatus
|
|
|
|
|
|
@pytest.mark.asyncio
|
|
async def test_notification_create(notification_model_generator):
|
|
notification_model = notification_model_generator()
|
|
await notification_model.save()
|
|
notification_db = await Notification.all().first()
|
|
assert notification_db.status == NotificationStatus.WAITING
|
|
assert notification_db.message == "message_1"
|