mirror of
https://github.com/simple-login/app.git
synced 2024-11-10 17:35:27 +08:00
15 lines
364 B
Python
15 lines
364 B
Python
import arrow
|
|
|
|
from app.models import CoinbaseSubscription
|
|
from cron import notify_manual_sub_end
|
|
from tests.utils import create_new_user
|
|
|
|
|
|
def test_notify_manual_sub_end(flask_client):
|
|
user = create_new_user()
|
|
|
|
CoinbaseSubscription.create(
|
|
user_id=user.id, end_at=arrow.now().shift(days=13, hours=2), commit=True
|
|
)
|
|
|
|
notify_manual_sub_end()
|