Permalink
Browse files

Add an (empty) testsuite.

  • Loading branch information...
lamby committed Sep 13, 2018
1 parent de0e15b commit d70e6b1af6aab1c545fa197577336e2dd56dc261
Showing with 54 additions and 4 deletions.
  1. +23 −0 .travis.yml
  2. +16 −0 runtests.py
  3. +3 −4 setup.py
  4. 0 tests/__init__.py
  5. +12 −0 tests/test_settings.py
View
@@ -0,0 +1,23 @@
language: python
python:
- "2.7"
- "3.5"
- "3.6"
env:
matrix:
- DJANGO="Django<1.11"
- DJANGO="Django<2"
- DJANGO="Django<2.1"
matrix:
exclude:
- python: "2.7"
env: DJANGO="Django<2.1"
- python: "3.6"
env: DJANGO="Django<1.11"
install:
- pip install "$DJANGO" flake8
before_script:
- "flake8 ."
script:
- ./runtests.py
View
@@ -0,0 +1,16 @@
#!/usr/bin/env python
import os
import sys
import django
from django.conf import settings
from django.test.utils import get_runner
if __name__ == '__main__':
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.test_settings'
django.setup()
TestRunner = get_runner(settings)
test_runner = TestRunner()
failures = test_runner.run_tests(sys.argv[1:])
sys.exit(bool(failures))
View
@@ -1,11 +1,10 @@
from setuptools import setup
from setuptools import setup, find_packages
setup(
name='django-auto-one-to-one',
version='3.0.0',
packages=(
'django_auto_one_to_one',
),
packages=find_packages(exclude=('tests',)),
url='https://chris-lamb.co.uk/projects/django-auto-one-to-one',
author="Chris Lamb",
author_email="chris@chris-lamb.co.uk",
View
No changes.
View
@@ -0,0 +1,12 @@
SECRET_KEY = 'fake-key'
INSTALLED_APPS = [
'django.contrib.auth',
'django.contrib.contenttypes',
'tests',
]
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
},
}

0 comments on commit d70e6b1

Please sign in to comment.