-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathsettings_test.py
More file actions
23 lines (20 loc) · 862 Bytes
/
settings_test.py
File metadata and controls
23 lines (20 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import os
# DO NOT CHECK-IN WORLDCAT_KEY TO REPO
from settings import WORLDCAT_KEY # NOQA
from settings_template import * # NOQA
from settings_template import DIRNAME, STORAGE
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'TEST': {'CHARSET': "utf8", 'COLLATION': "utf8_general_ci"},
}
}
CTS_URL = "https://transferqa.loctest.gov/transfer/"
# Use different storage pathes to avoid interference with the actual storage for the web app
# some tests purge batch and deletes data (such as word coordinates)
BIB_STORAGE = os.path.join(STORAGE, "test_bib")
OCR_DUMP_STORAGE = os.path.join(STORAGE, "test_ocr")
COORD_STORAGE = os.path.join(STORAGE, "test_word_coordinates")
TEMP_TEST_DATA = os.path.join(STORAGE, "temp_test_data")
DATA_DIR = os.path.join(DIRNAME, "data")
BATCH_STORAGE = os.path.join(DATA_DIR, "batches")