-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #746 from rdhyee/staging_prod_ssl
Omnibus PR for our consideration 2019.10.04
- Loading branch information
Showing
55 changed files
with
8,297 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
[[source]] | ||
name = "pypi" | ||
verify_ssl = true | ||
url = "https://pypi.org/simple" | ||
|
||
[packages] | ||
anyjson = ">=0.3.3" | ||
coverage = ">=4.0.3" | ||
coveralls = ">=1.1" | ||
Django = ">=2.0.7" | ||
django-debug-toolbar = ">=1.9" | ||
django-redis-cache = ">=1.7.0" | ||
django-reversion = ">=2.0.6" | ||
django-user_agents = ">=0.3.0" | ||
docopt = ">=0.6.2" | ||
feedparser = ">=5.2.1" | ||
geojson = ">=1.3" | ||
isodate = ">=0.5.4" | ||
jsonfield = ">=1.0.3" | ||
lxml = ">=3.8" | ||
mysolr = ">=0.8.3" | ||
numpy = ">=1.11.0" | ||
pandas = ">=0.24.0" | ||
"psycopg2" = ">=2.7.5" | ||
pyparsing = ">=2.1.1" | ||
python-dateutil = ">=2.5.3" | ||
pytz = ">=2016.4" | ||
rdflib = ">=4.2.1" | ||
rdflib-jsonld = ">=0.4.0" | ||
redis = ">=2.10.5" | ||
requests = ">=2.20.0" | ||
roman = ">=2.0.0" | ||
scipy = ">=0.17.0" | ||
six = ">=1.10.0" | ||
sqlparse = ">=0.2.4" | ||
titlecase = ">=0.9.0" | ||
ua-parser = ">=0.7.1" | ||
user-agents = ">=1.0.1" | ||
python-memcached = ">=1.59" | ||
pyproj = ">=1.9.5" | ||
atomicwrites = ">=1.2.1" | ||
attrs = ">=18.2.0" | ||
more-itertools = ">=4.3.0" | ||
"pathlib2" = ">=2.3.2" | ||
pluggy = ">=0.8.0" | ||
py = ">=1.7.0" | ||
pytest = ">=3.9.3" | ||
pytest-django = ">=3.4.3" | ||
Pillow = ">=5.2.0" | ||
PyYAML = ">=3.11" | ||
Shapely = ">=1.5.15" | ||
Unidecode = ">=0.4.19" | ||
uWSGI = ">=2.0.17.1" | ||
|
||
[dev-packages] | ||
|
||
[requires] | ||
python_version = "3.7" |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import pytest | ||
import json | ||
from opencontext_py import settings | ||
|
||
@pytest.fixture(autouse=True) | ||
def enable_db_access_for_all_tests(db): | ||
pass | ||
|
||
@pytest.fixture(scope='session') | ||
def django_db_setup(): | ||
|
||
with open('secrets.json', 'r') as secrets_file: | ||
secrets = json.loads(secrets_file.read()) | ||
|
||
settings.DATABASES['default'] = { | ||
'ENGINE': 'django.db.backends.postgresql_psycopg2', | ||
'NAME': secrets.get('DATABASES_NAME'), | ||
'USER': secrets.get('DATABASES_USER'), | ||
'PASSWORD': secrets.get('DATABASES_PASSWORD'), | ||
'HOST': secrets.get('DATABASES_HOST'), | ||
'CONN_MAX_AGE': 600, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# About Tests | ||
|
||
The tests directory should be subdivided into 3 directories with different kinds of tests. This will be: | ||
|
||
1. `/unit`: These will test functions and not require use of the database. | ||
2. `/integration`: These are tests need a (temporary) database, but can work with fake data. | ||
3. `/regression`: These tests will either require or will be easiest to conduct with real data in the Open Context database. |
Oops, something went wrong.