15 lines
363 B
Python
15 lines
363 B
Python
import pytest
|
|
|
|
from apps.newsletter.services import ProviderSyncService
|
|
from apps.newsletter.views import confirmation_token
|
|
|
|
|
|
def test_confirmation_token_roundtrip():
|
|
token = confirmation_token("x@example.com")
|
|
assert token
|
|
|
|
|
|
def test_provider_sync_not_implemented():
|
|
with pytest.raises(NotImplementedError):
|
|
ProviderSyncService().sync(None)
|