29
app/core/tests/unit/manufacturer/test_manufacturer_views.py
Normal file
29
app/core/tests/unit/manufacturer/test_manufacturer_views.py
Normal file
@ -0,0 +1,29 @@
|
||||
import pytest
|
||||
import unittest
|
||||
import requests
|
||||
|
||||
from django.test import TestCase
|
||||
|
||||
from app.tests.abstract.models import PrimaryModel
|
||||
|
||||
|
||||
|
||||
class ManufacturerViews(
|
||||
TestCase,
|
||||
PrimaryModel
|
||||
):
|
||||
|
||||
add_module = 'settings.views.manufacturer'
|
||||
add_view = 'Add'
|
||||
|
||||
change_module = add_module
|
||||
change_view = 'View'
|
||||
|
||||
delete_module = add_module
|
||||
delete_view = 'Delete'
|
||||
|
||||
display_module = add_module
|
||||
display_view = 'View'
|
||||
|
||||
index_module = add_module
|
||||
index_view = 'Index'
|
35
app/core/tests/unit/test_history/test_history_views.py
Normal file
35
app/core/tests/unit/test_history/test_history_views.py
Normal file
@ -0,0 +1,35 @@
|
||||
import pytest
|
||||
import unittest
|
||||
import requests
|
||||
|
||||
from django.test import TestCase
|
||||
|
||||
from app.tests.abstract.models import ModelDisplay
|
||||
|
||||
|
||||
|
||||
class HistoryViews(
|
||||
TestCase,
|
||||
ModelDisplay
|
||||
):
|
||||
|
||||
# add_module = 'config_management.views.groups.groups'
|
||||
# add_view = 'GroupAdd'
|
||||
|
||||
# change_module = add_module
|
||||
# change_view = 'GroupView'
|
||||
|
||||
# delete_module = add_module
|
||||
# delete_view = 'GroupDelete'
|
||||
|
||||
display_module = 'core.views.history'
|
||||
display_view = 'View'
|
||||
|
||||
# index_module = add_module
|
||||
# index_view = 'GroupIndexView'
|
||||
|
||||
@pytest.mark.skip(reason="test this models dynamic build of self.model")
|
||||
def test_view_display_attribute_exists_model(self):
|
||||
""" As part of display init this view dynamically builds self.model """
|
||||
|
||||
pass
|
@ -0,0 +1,30 @@
|
||||
import pytest
|
||||
import unittest
|
||||
import requests
|
||||
|
||||
from django.test import TestCase
|
||||
|
||||
from app.tests.abstract.models import ModelDisplay, ModelIndex
|
||||
|
||||
|
||||
|
||||
class TaskResultsViews(
|
||||
TestCase,
|
||||
ModelDisplay,
|
||||
ModelIndex
|
||||
):
|
||||
|
||||
# add_module = 'core.views.celery_log'
|
||||
# add_view = 'GroupAdd'
|
||||
|
||||
# change_module = add_module
|
||||
# change_view = 'GroupView'
|
||||
|
||||
# delete_module = add_module
|
||||
# delete_view = 'GroupDelete'
|
||||
|
||||
display_module = 'core.views.celery_log'
|
||||
display_view = 'View'
|
||||
|
||||
index_module = display_module
|
||||
index_view = 'Index'
|
Reference in New Issue
Block a user