Skip to content

Commit

Permalink
Merge branch 'jtw/fix-aliasing' of https://github.com/archesproject/a…
Browse files Browse the repository at this point in the history
…rches-rdm into jtw/fix-aliasing
  • Loading branch information
chrabyrd committed Aug 6, 2024
2 parents 7c47ae1 + 084765c commit eafebcf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 152 deletions.
34 changes: 0 additions & 34 deletions arches_lingo/test_settings.py

This file was deleted.

2 changes: 0 additions & 2 deletions tests/search_indexes/__init__.py

This file was deleted.

37 changes: 0 additions & 37 deletions tests/search_indexes/sample_index_tests.py

This file was deleted.

84 changes: 5 additions & 79 deletions tests/test_settings.py
Original file line number Diff line number Diff line change
@@ -1,53 +1,11 @@
"""
ARCHES - a program developed to inventory and manage immovable cultural heritage.
Copyright (C) 2013 J. Paul Getty Trust and World Monuments Fund
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""

from arches.settings import *
import arches
import os

try:
from django.utils.translation import gettext_lazy as _
except ImportError: # unable to import prior to installing requirements.txt in setup.py
pass
from arches_lingo.settings import *

PACKAGE_NAME = "arches_lingo"
APP_NAME = "arches_lingo"

APP_ROOT = os.path.dirname(__file__)
TEST_ROOT = os.path.normpath(os.path.join(ROOT_DIR, "..", "tests"))

ROOT_URLCONF = "arches_lingo.urls"

ARCHES_APPLICATIONS = ()

MIN_ARCHES_VERSION = arches.__version__
MAX_ARCHES_VERSION = arches.__version__

# LOAD_V3_DATA_DURING_TESTS = True will engage the most extensive the of the v3
# data migration tests, which could add over a minute to the test process. It's
# recommended that this setting only be set to True in tests/settings_local.py
# and run in specific cases at the discretion of the developer.
LOAD_V3_DATA_DURING_TESTS = False

RESOURCE_GRAPH_LOCATIONS = (os.path.join(TEST_ROOT, "fixtures", "resource_graphs"),)

ONTOLOGY_FIXTURES = os.path.join(TEST_ROOT, "fixtures", "ontologies", "test_ontology")
ONTOLOGY_PATH = os.path.join(TEST_ROOT, "fixtures", "ontologies", "cidoc_crm")
PROJECT_TEST_ROOT = os.path.dirname(__file__)
MEDIA_ROOT = os.path.join(PROJECT_TEST_ROOT, "fixtures", "data")

BUSINESS_DATA_FILES = (
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
Expand Down Expand Up @@ -89,41 +47,9 @@

TEST_RUNNER = "tests.base_test.ArchesTestRunner"
SILENCED_SYSTEM_CHECKS.append(
"arches.W001"
) # Cache backend does not support rate-limiting

# could add Chrome, PhantomJS etc... here
LOCAL_BROWSERS = [] # ['Firefox']

ENABLE_USER_SIGNUP = True
FORCE_USER_SIGNUP_EMAIL_AUTHENTICATION = True

OVERRIDE_RESOURCE_MODEL_LOCK = True

ENABLE_TWO_FACTOR_AUTHENTICATION = False
FORCE_TWO_FACTOR_AUTHENTICATION = False
"arches.W001", # Cache backend does not support rate-limiting
)

DATATYPE_LOCATIONS.append("tests.fixtures.datatypes")
ELASTICSEARCH_HOSTS = [
{"scheme": "http", "host": "localhost", "port": ELASTICSEARCH_HTTP_PORT}
]
LANGUAGES = [
("de", _("German")),
("en", _("English")),
("en-gb", _("British English")),
("es", _("Spanish")),
("ar", _("Arabic")),
]

DOCKER = False

try:
from arches.settings_local import *
except ImportError:
pass

if DOCKER:
try:
from arches.settings_docker import *
except ImportError:
pass
File renamed without changes.

0 comments on commit eafebcf

Please sign in to comment.