mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-29 10:40:59 +00:00
12 lines
262 B
Python
12 lines
262 B
Python
|
import pytest
|
||
|
|
||
|
from users.models import Domain
|
||
|
from users.services import DomainService
|
||
|
|
||
|
|
||
|
@pytest.mark.django_db
|
||
|
def test_block():
|
||
|
DomainService.block(["block1.example.com", "block2.example.com"])
|
||
|
|
||
|
assert Domain.objects.filter(blocked=True).count() == 2
|