core-explore-example-app 2.5.0__tar.gz → 2.6.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/PKG-INFO +1 -1
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/views/user/views.py +7 -2
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app.egg-info/PKG-INFO +1 -1
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app.egg-info/SOURCES.txt +6 -1
- core_explore_example_app-2.6.0/core_explore_example_app.egg-info/requires.txt +7 -0
- core_explore_example_app-2.6.0/requirements.core.txt +3 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/setup.py +1 -1
- core_explore_example_app-2.6.0/tests/components/data/fixtures/fixtures.py +109 -0
- core_explore_example_app-2.6.0/tests/views/__init__.py +0 -0
- core_explore_example_app-2.6.0/tests/views/ajax/__init__.py +0 -0
- core_explore_example_app-2.6.0/tests/views/views/__init__.py +0 -0
- core_explore_example_app-2.6.0/tests/views/views/tests_int.py +65 -0
- core_explore_example_app-2.5.0/core_explore_example_app.egg-info/requires.txt +0 -8
- core_explore_example_app-2.5.0/requirements.core.txt +0 -4
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/LICENSE.md +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/MANIFEST.in +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/README.rst +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/__init__.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/admin.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/apps.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/commons/__init__.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/commons/exceptions.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/components/__init__.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/components/explore_data_structure/__init__.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/components/explore_data_structure/admin_site.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/components/explore_data_structure/api.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/components/explore_data_structure/models.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/components/persistent_query_example/__init__.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/components/persistent_query_example/admin_site.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/components/persistent_query_example/api.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/components/persistent_query_example/models.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/components/saved_query/__init__.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/components/saved_query/admin_site.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/components/saved_query/api.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/components/saved_query/models.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/discover.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/menus.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/migrations/0001_initial.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/migrations/__init__.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/models.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/permissions/__init__.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/permissions/discover.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/permissions/rights.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/rest/__init__.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/rest/persistent_query_example/__init__.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/rest/persistent_query_example/serializers.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/rest/persistent_query_example/views.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/rest/saved_query/__init__.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/rest/saved_query/serializers.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/rest/saved_query/views.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/rest/urls.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/settings.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/static/core_explore_example_app/user/css/query_builder.css +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/static/core_explore_example_app/user/css/style.css +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/static/core_explore_example_app/user/css/xsd_form.css +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/static/core_explore_example_app/user/js/build_query.js +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/static/core_explore_example_app/user/js/build_query.raw.js +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/static/core_explore_example_app/user/js/buttons.raw.js +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/static/core_explore_example_app/user/js/choice.raw.js +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/static/core_explore_example_app/user/js/persistent_query.raw.js +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/static/core_explore_example_app/user/js/refresh_sorting.js +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/static/core_explore_example_app/user/js/refresh_sorting.raw.js +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/static/core_explore_example_app/user/js/select_fields.js +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/static/core_explore_example_app/user/js/select_fields.raw.js +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/system/__init__.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/system/api.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/tasks.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/build_query.html +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/errors.html +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/index.html +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/list/list.html +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/modals/custom_tree.html +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/modals/delete_all_queries.html +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/modals/delete_query.html +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/modals/errors.html +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/modals/sub_elements_query_builder.html +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/add.html +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/and_or_not.html +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/criteria_select.html +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/enum.html +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/field_input.html +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/gregorian_strict_match.html +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/initial_form.html +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/input.html +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/new_criteria.html +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/new_query.html +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/numeric_select.html +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/remove.html +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/string_select.html +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/sub_elements_query.html +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/query_builder/yes_no.html +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/results.html +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/templates/core_explore_example_app/user/select_fields.html +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/urls.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/utils/__init__.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/utils/custom_checkbox_renderer.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/utils/displayed_query.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/utils/mongo_query.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/utils/parser.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/utils/query_builder.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/utils/xml.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/views/__init__.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/views/admin/__init__.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/views/user/__init__.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/views/user/ajax.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app.egg-info/dependency_links.txt +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app.egg-info/top_level.txt +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/docs/__init__.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/docs/conf.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/docs/conf_urls.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/pyproject.toml +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/setup.cfg +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/tests/__init__.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/tests/components/__init__.py +0 -0
- {core_explore_example_app-2.5.0/tests/components/explore_data_structure → core_explore_example_app-2.6.0/tests/components/data}/__init__.py +0 -0
- {core_explore_example_app-2.5.0/tests/components/persistent_query_example → core_explore_example_app-2.6.0/tests/components/data/fixtures}/__init__.py +0 -0
- {core_explore_example_app-2.5.0/tests/components/persistent_query_example/fixtures → core_explore_example_app-2.6.0/tests/components/explore_data_structure}/__init__.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/tests/components/explore_data_structure/tests_unit.py +0 -0
- {core_explore_example_app-2.5.0/tests/components/saved_query → core_explore_example_app-2.6.0/tests/components/persistent_query_example}/__init__.py +0 -0
- {core_explore_example_app-2.5.0/tests/rest → core_explore_example_app-2.6.0/tests/components/persistent_query_example/fixtures}/__init__.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/tests/components/persistent_query_example/fixtures/fixtures.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/tests/components/persistent_query_example/tests_int_access_control.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/tests/components/persistent_query_example/tests_unit.py +0 -0
- {core_explore_example_app-2.5.0/tests/rest/persistent_query_example → core_explore_example_app-2.6.0/tests/components/saved_query}/__init__.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/tests/components/saved_query/tests_unit.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/tests/mocks.py +0 -0
- {core_explore_example_app-2.5.0/tests/rest/saved_query → core_explore_example_app-2.6.0/tests/rest}/__init__.py +0 -0
- {core_explore_example_app-2.5.0/tests/rest/saved_query/fixtures → core_explore_example_app-2.6.0/tests/rest/persistent_query_example}/__init__.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/tests/rest/persistent_query_example/tests_int.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/tests/rest/persistent_query_example/tests_permissions.py +0 -0
- {core_explore_example_app-2.5.0/tests/utils → core_explore_example_app-2.6.0/tests/rest/saved_query}/__init__.py +0 -0
- {core_explore_example_app-2.5.0/tests/utils/mongo_query → core_explore_example_app-2.6.0/tests/rest/saved_query/fixtures}/__init__.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/tests/rest/saved_query/fixtures/fixtures.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/tests/rest/saved_query/tests_int.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/tests/rest/saved_query/tests_permissions.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/tests/test_settings.py +0 -0
- {core_explore_example_app-2.5.0/tests/utils/xml → core_explore_example_app-2.6.0/tests/utils}/__init__.py +0 -0
- {core_explore_example_app-2.5.0/tests/views → core_explore_example_app-2.6.0/tests/utils/mongo_query}/__init__.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/tests/utils/mongo_query/tests_unit.py +0 -0
- {core_explore_example_app-2.5.0/tests/views/ajax → core_explore_example_app-2.6.0/tests/utils/xml}/__init__.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/tests/utils/xml/tests_unit.py +0 -0
- {core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/tests/views/ajax/tests_unit.py +0 -0
|
@@ -30,6 +30,7 @@ from core_explore_example_app.settings import INSTALLED_APPS
|
|
|
30
30
|
from core_explore_example_app.utils.parser import render_form
|
|
31
31
|
from core_main_app.commons import exceptions as exceptions
|
|
32
32
|
from core_main_app.components.template import api as template_api
|
|
33
|
+
from core_main_app.components.template.models import Template
|
|
33
34
|
from core_main_app.components.template_version_manager import (
|
|
34
35
|
api as template_version_manager_api,
|
|
35
36
|
)
|
|
@@ -93,7 +94,9 @@ class IndexView(View):
|
|
|
93
94
|
List of all global version managers
|
|
94
95
|
|
|
95
96
|
"""
|
|
96
|
-
return self.api.get_active_global_version_manager(
|
|
97
|
+
return self.api.get_active_global_version_manager(
|
|
98
|
+
request=request
|
|
99
|
+
).filter(template__format=Template.XSD)
|
|
97
100
|
|
|
98
101
|
def get_user_active_list(self, request):
|
|
99
102
|
"""Get all active version managers with given user id.
|
|
@@ -105,7 +108,9 @@ class IndexView(View):
|
|
|
105
108
|
List of all global version managers with given user.
|
|
106
109
|
|
|
107
110
|
"""
|
|
108
|
-
return self.api.get_active_version_manager_by_user_id(
|
|
111
|
+
return self.api.get_active_version_manager_by_user_id(
|
|
112
|
+
request=request
|
|
113
|
+
).filter(template__format=Template.XSD)
|
|
109
114
|
|
|
110
115
|
|
|
111
116
|
class SelectFieldsView(View):
|
|
@@ -105,6 +105,9 @@ tests/__init__.py
|
|
|
105
105
|
tests/mocks.py
|
|
106
106
|
tests/test_settings.py
|
|
107
107
|
tests/components/__init__.py
|
|
108
|
+
tests/components/data/__init__.py
|
|
109
|
+
tests/components/data/fixtures/__init__.py
|
|
110
|
+
tests/components/data/fixtures/fixtures.py
|
|
108
111
|
tests/components/explore_data_structure/__init__.py
|
|
109
112
|
tests/components/explore_data_structure/tests_unit.py
|
|
110
113
|
tests/components/persistent_query_example/__init__.py
|
|
@@ -130,4 +133,6 @@ tests/utils/xml/__init__.py
|
|
|
130
133
|
tests/utils/xml/tests_unit.py
|
|
131
134
|
tests/views/__init__.py
|
|
132
135
|
tests/views/ajax/__init__.py
|
|
133
|
-
tests/views/ajax/tests_unit.py
|
|
136
|
+
tests/views/ajax/tests_unit.py
|
|
137
|
+
tests/views/views/__init__.py
|
|
138
|
+
tests/views/views/tests_int.py
|
|
@@ -37,7 +37,7 @@ chdir(normpath(join(abspath(__file__), pardir)))
|
|
|
37
37
|
|
|
38
38
|
setup(
|
|
39
39
|
name="core_explore_example_app",
|
|
40
|
-
version="2.
|
|
40
|
+
version="2.6.0",
|
|
41
41
|
description="Exploration by example for the curator core project",
|
|
42
42
|
long_description=long_desc,
|
|
43
43
|
author="NIST IT Lab",
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
""" Fixtures files for Data
|
|
2
|
+
"""
|
|
3
|
+
|
|
4
|
+
from core_main_app.components.template.models import Template
|
|
5
|
+
from core_main_app.components.template_version_manager.models import (
|
|
6
|
+
TemplateVersionManager,
|
|
7
|
+
)
|
|
8
|
+
from core_main_app.utils.integration_tests.fixture_interface import (
|
|
9
|
+
FixtureInterface,
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class DataFixtures(FixtureInterface):
|
|
14
|
+
"""Data fixtures"""
|
|
15
|
+
|
|
16
|
+
user_xsd_template = None
|
|
17
|
+
user_json_template = None
|
|
18
|
+
user_template_vm_xsd = None
|
|
19
|
+
user_template_vm_json = None
|
|
20
|
+
global_xsd_template = None
|
|
21
|
+
global_json_template = None
|
|
22
|
+
global_template_vm_xsd = None
|
|
23
|
+
global_template_vm_json = None
|
|
24
|
+
data_collection = None
|
|
25
|
+
|
|
26
|
+
def insert_data(self):
|
|
27
|
+
"""Insert a set of Data.
|
|
28
|
+
|
|
29
|
+
Returns:
|
|
30
|
+
|
|
31
|
+
"""
|
|
32
|
+
# Make a connexion with a mock database
|
|
33
|
+
self.generate_templates()
|
|
34
|
+
|
|
35
|
+
def generate_templates(self):
|
|
36
|
+
"""Generate Templates.
|
|
37
|
+
|
|
38
|
+
Returns:
|
|
39
|
+
|
|
40
|
+
"""
|
|
41
|
+
self.user_template_vm_xsd = TemplateVersionManager(
|
|
42
|
+
title="user template XSD",
|
|
43
|
+
user="1",
|
|
44
|
+
is_disabled=False,
|
|
45
|
+
)
|
|
46
|
+
self.user_template_vm_xsd.save_version_manager()
|
|
47
|
+
|
|
48
|
+
self.user_xsd_template = Template(
|
|
49
|
+
content=(
|
|
50
|
+
'<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">'
|
|
51
|
+
'<xs:element name="tag"></xs:element></xs:schema>'
|
|
52
|
+
),
|
|
53
|
+
hash="",
|
|
54
|
+
format=Template.XSD,
|
|
55
|
+
filename="filename.xsd",
|
|
56
|
+
version_manager=self.user_template_vm_xsd,
|
|
57
|
+
)
|
|
58
|
+
self.user_xsd_template.save()
|
|
59
|
+
|
|
60
|
+
self.user_template_vm_json = TemplateVersionManager(
|
|
61
|
+
title="user template JSON",
|
|
62
|
+
user="1",
|
|
63
|
+
is_disabled=False,
|
|
64
|
+
)
|
|
65
|
+
self.user_template_vm_json.save_version_manager()
|
|
66
|
+
|
|
67
|
+
self.user_json_template = Template(
|
|
68
|
+
content="{}",
|
|
69
|
+
hash="",
|
|
70
|
+
format=Template.JSON,
|
|
71
|
+
filename="filename.json",
|
|
72
|
+
version_manager=self.user_template_vm_json,
|
|
73
|
+
)
|
|
74
|
+
self.user_json_template.save()
|
|
75
|
+
|
|
76
|
+
self.global_template_vm_xsd = TemplateVersionManager(
|
|
77
|
+
title="global template XSD",
|
|
78
|
+
user=None,
|
|
79
|
+
is_disabled=False,
|
|
80
|
+
)
|
|
81
|
+
self.global_template_vm_xsd.save_version_manager()
|
|
82
|
+
|
|
83
|
+
self.global_xsd_template = Template(
|
|
84
|
+
content=(
|
|
85
|
+
'<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">'
|
|
86
|
+
'<xs:element name="tag"></xs:element></xs:schema>'
|
|
87
|
+
),
|
|
88
|
+
hash="",
|
|
89
|
+
format=Template.XSD,
|
|
90
|
+
filename="filename.xsd",
|
|
91
|
+
version_manager=self.global_template_vm_xsd,
|
|
92
|
+
)
|
|
93
|
+
self.global_xsd_template.save()
|
|
94
|
+
|
|
95
|
+
self.global_template_vm_json = TemplateVersionManager(
|
|
96
|
+
title="global template JSON",
|
|
97
|
+
user=None,
|
|
98
|
+
is_disabled=False,
|
|
99
|
+
)
|
|
100
|
+
self.global_template_vm_json.save_version_manager()
|
|
101
|
+
|
|
102
|
+
self.global_json_template = Template(
|
|
103
|
+
content="{}",
|
|
104
|
+
hash="",
|
|
105
|
+
format=Template.JSON,
|
|
106
|
+
filename="filename.json",
|
|
107
|
+
version_manager=self.global_template_vm_json,
|
|
108
|
+
)
|
|
109
|
+
self.global_json_template.save()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
""" Test user views
|
|
2
|
+
"""
|
|
3
|
+
|
|
4
|
+
from tests.components.data.fixtures.fixtures import (
|
|
5
|
+
DataFixtures,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
from core_explore_example_app.views.user.views import IndexView
|
|
9
|
+
from core_main_app.utils.integration_tests.integration_base_test_case import (
|
|
10
|
+
IntegrationBaseTestCase,
|
|
11
|
+
)
|
|
12
|
+
from core_main_app.utils.tests_tools.MockUser import create_mock_user
|
|
13
|
+
from core_main_app.utils.tests_tools.RequestMock import create_mock_request
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class TestIndexView(IntegrationBaseTestCase):
|
|
17
|
+
"""TestIndexView"""
|
|
18
|
+
|
|
19
|
+
def setUp(self):
|
|
20
|
+
"""setUp
|
|
21
|
+
|
|
22
|
+
Returns:
|
|
23
|
+
|
|
24
|
+
"""
|
|
25
|
+
self.fixture = DataFixtures()
|
|
26
|
+
self.fixture.insert_data()
|
|
27
|
+
self.user1 = create_mock_user(user_id="1")
|
|
28
|
+
|
|
29
|
+
def test_get_global_active_list_returns_xsd_templates(
|
|
30
|
+
self,
|
|
31
|
+
):
|
|
32
|
+
"""test_get_global_active_list_returns_xsd_templates
|
|
33
|
+
|
|
34
|
+
Returns:
|
|
35
|
+
|
|
36
|
+
"""
|
|
37
|
+
# Arrange
|
|
38
|
+
mock_request = create_mock_request(user=self.user1)
|
|
39
|
+
|
|
40
|
+
# Act
|
|
41
|
+
index_view = IndexView()
|
|
42
|
+
templates = index_view.get_global_active_list(mock_request)
|
|
43
|
+
|
|
44
|
+
# Assert
|
|
45
|
+
self.assertEqual(templates.count(), 1)
|
|
46
|
+
self.assertEqual(templates[0], self.fixture.global_template_vm_xsd)
|
|
47
|
+
|
|
48
|
+
def test_get_user_active_list_returns_xsd_templates(
|
|
49
|
+
self,
|
|
50
|
+
):
|
|
51
|
+
"""test_get_user_active_list_returns_xsd_templates
|
|
52
|
+
|
|
53
|
+
Returns:
|
|
54
|
+
|
|
55
|
+
"""
|
|
56
|
+
# Arrange
|
|
57
|
+
mock_request = create_mock_request(user=self.user1)
|
|
58
|
+
|
|
59
|
+
# Act
|
|
60
|
+
index_view = IndexView()
|
|
61
|
+
templates = index_view.get_user_active_list(mock_request)
|
|
62
|
+
|
|
63
|
+
# Assert
|
|
64
|
+
self.assertEqual(templates.count(), 1)
|
|
65
|
+
self.assertEqual(templates[0], self.fixture.user_template_vm_xsd)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/admin.py
RENAMED
|
File without changes
|
{core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/apps.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/menus.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/models.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/tasks.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/core_explore_example_app/urls.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/tests/components/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/tests/utils/xml/tests_unit.py
RENAMED
|
File without changes
|
{core_explore_example_app-2.5.0 → core_explore_example_app-2.6.0}/tests/views/ajax/tests_unit.py
RENAMED
|
File without changes
|