mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-25 16:51:00 +00:00
11 lines
262 B
Python
11 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
|