Skip to content

Commit

Permalink
Add testing infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
vkurup committed Jan 17, 2015
1 parent 70ed750 commit 41e3e87
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .coveragerc
@@ -0,0 +1,2 @@
[run]
source = djappsettings
4 changes: 3 additions & 1 deletion setup.py
Expand Up @@ -15,4 +15,6 @@

description="Per-app default settings for Django",
url="http://github.com/adammck/djappsettings",
packages=find_packages())
packages=find_packages(),
test_suite='tests',
)
1 change: 0 additions & 1 deletion tests/README

This file was deleted.

Empty file added tests/__init__.py
Empty file.
8 changes: 8 additions & 0 deletions tests/test_djappsettings.py
@@ -0,0 +1,8 @@
import unittest
from djappsettings import settings


class DjAppSettingsTest(unittest.TestCase):

def test_import(self):
self.assertTrue(settings)
22 changes: 22 additions & 0 deletions tox.ini
@@ -0,0 +1,22 @@
[tox]
envlist = py26, py27, py33, py34, flake8, coverage

[testenv]
commands = {envpython} setup.py test
deps = django>1.4

[flake8]
exclude = .tox
ignore = E128
max-line-length = 120

[testenv:flake8]
deps = flake8>2.2.2
commands = flake8 .

[testenv:coverage]
basepython = python2.7
commands = coverage run setup.py test
coverage report -m --fail-under=80
deps = coverage>=3.7.1
django>1.4

0 comments on commit 41e3e87

Please sign in to comment.