mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-07-07 16:40:49 +02:00
13 lines
280 B
Python
13 lines
280 B
Python
from django.http import Http404
|
|
import pytest
|
|
|
|
from core import utils
|
|
|
|
pytestmark = pytest.mark.django_db
|
|
|
|
|
|
def test_get_objects_raises_404(create_admin_user):
|
|
fixture = create_admin_user()
|
|
with pytest.raises(Http404):
|
|
utils.get_objects("Users", fixture['admin'])
|