This commit is contained in:
Andreas Zweili 2019-11-30 16:08:53 +01:00
parent 04eac793d6
commit cbae8c9711
9 changed files with 11 additions and 9 deletions

View File

@ -4,7 +4,7 @@ from django.test import Client
import helper
pytestmark=pytest.mark.django_db
pytestmark = pytest.mark.django_db
def test_backup_detail_view_not_logged_in():

View File

@ -6,7 +6,7 @@ from django.contrib.auth import get_user_model
import helper
pytestmark=pytest.mark.django_db
pytestmark = pytest.mark.django_db
def test_customer_detail_view_not_logged_in():

View File

@ -5,7 +5,7 @@ from django.test import Client
import helper
pytestmark=pytest.mark.django_db
pytestmark = pytest.mark.django_db
def test_computer_list_view_not_logged_in():

View File

@ -5,7 +5,8 @@ from django.test import Client
import helper
pytestmark=pytest.mark.django_db
pytestmark = pytest.mark.django_db
def test_customer_computer_table_not_logged_in():
response = Client().get('/customer/1/computers/')

View File

@ -6,7 +6,7 @@ from django.contrib.auth import get_user_model
import helper
pytestmark=pytest.mark.django_db
pytestmark = pytest.mark.django_db
def test_customer_detail_view_not_logged_in():

View File

@ -5,7 +5,7 @@ from django.test import Client
from helper import in_content, not_in_content
pytestmark=pytest.mark.django_db
pytestmark = pytest.mark.django_db
def test_customer_device_table_not_logged_in():

View File

@ -6,7 +6,7 @@ from django.contrib.auth import get_user_model
import helper
pytestmark=pytest.mark.django_db
pytestmark = pytest.mark.django_db
def test_customer_list_view_not_logged_in():

View File

@ -5,7 +5,7 @@ from django.test import Client
import helper
pytestmark=pytest.mark.django_db
pytestmark = pytest.mark.django_db
def test_device_detail_view_not_logged_in():

View File

@ -8,7 +8,8 @@ from inventory.models import DeviceInNet
import helper
pytestmark=pytest.mark.django_db
pytestmark = pytest.mark.django_db
def test_net_detail_view_no_permission(create_admin_user):
create_admin_user()