From 7ce90b5ed176430d15c180fee5e581ee6f3075ea Mon Sep 17 00:00:00 2001 From: Jay Varner Date: Mon, 15 Apr 2019 15:21:51 -0700 Subject: [PATCH] Setting up travix and pytest. --- .travis.yml | 19 +++++++++++++++++++ config/settings/test.py | 7 +++++++ pytest.ini | 1 + 3 files changed, 27 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..cccb7a358 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,19 @@ +language: python +python: + - "3.3" + - "3.4" + - "3.5" + - "3.5-dev" # 3.5 development branch + - "3.6" + - "3.6-dev" # 3.6 development branch + +services: postgresql + +before_install: + - export DATABASE_URL=postgres://postgres@localhost:5432/travisci +# command to install dependencies +install: + - pip install -r requirements/local.txt +# command to run tests +script: + - python manage.py test \ No newline at end of file diff --git a/config/settings/test.py b/config/settings/test.py index d5f8c07d8..95f92b685 100644 --- a/config/settings/test.py +++ b/config/settings/test.py @@ -53,3 +53,10 @@ # Your stuff... # ------------------------------------------------------------------------------ +IIIF_IMAGE_SERVER_BASE = 'https://loris.library.emory.edu' + +HOSTNAME = 'https://readux-dev.org:3000' + +DATASTREAM_PREFIX = 'http://repo.library.emory.edu/fedora/objects/' +DATASTREAM_SUFFIX = '/datastreams/position/content' +HTTP_REQUEST_TIMEOUT = 5 diff --git a/pytest.ini b/pytest.ini index 595bee1e3..ca42df33d 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,3 +1,4 @@ [pytest] DJANGO_SETTINGS_MODULE=config.settings.test norecursedirs = node_modules +python_files = tests.py test_*.py *_tests.py