Skip to content

Commit

Permalink
Added tox file.
Browse files Browse the repository at this point in the history
  • Loading branch information
apollo13 committed Feb 2, 2014
1 parent f4c9edd commit a35236b
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __str__(self):


class HousePet(Pet):
trained = models.BooleanField()
trained = models.BooleanField(default=False)


# Test direct-tagging with custom through model
Expand Down Expand Up @@ -84,7 +84,7 @@ def __str__(self):


class DirectHousePet(DirectPet):
trained = models.BooleanField()
trained = models.BooleanField(default=False)


# Test custom through model to model with custom PK
Expand Down Expand Up @@ -114,7 +114,7 @@ def __str__(self):
return self.name

class CustomPKHousePet(CustomPKPet):
trained = models.BooleanField()
trained = models.BooleanField(default=False)

# Test custom through model to a custom tag model

Expand Down Expand Up @@ -143,7 +143,7 @@ def __str__(self):
return self.name

class OfficialHousePet(OfficialPet):
trained = models.BooleanField()
trained = models.BooleanField(default=False)


class Media(models.Model):
Expand Down
95 changes: 95 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
[testenv]
skipsdist = True
usedevelop = True
deps =
flake8
deps14 =
https://github.com/django/django/archive/stable/1.4.x.zip#egg=django
deps15 =
https://github.com/django/django/archive/stable/1.5.x.zip#egg=django
deps16 =
https://github.com/django/django/archive/stable/1.6.x.zip#egg=django
deps17 =
https://github.com/django/django/archive/master.zip#egg=django

commands =
python ./runtests.py


[testenv:py26-1.4.x]
basepython = python2.6
deps =
{[testenv]deps}
{[testenv]deps14}

[testenv:py26-1.5.x]
basepython = python2.6
deps =
{[testenv]deps}
{[testenv]deps15}

[testenv:py26-1.6.x]
basepython = python2.6
deps =
{[testenv]deps}
{[testenv]deps16}

[testenv:py27-1.4.x]
basepython = python2.7
deps =
{[testenv]deps}
{[testenv]deps14}

[testenv:py27-1.5.x]
basepython = python2.7
deps =
{[testenv]deps}
{[testenv]deps15}

[testenv:py27-1.6.x]
basepython = python2.7
deps =
{[testenv]deps}
{[testenv]deps16}

[testenv:py27-1.7.x]
basepython = python2.7
deps =
{[testenv]deps}
{[testenv]deps17}

[testenv:py32-1.5.x]
basepython = python3.2
deps =
{[testenv]deps}
{[testenv]deps15}

[testenv:py32-1.6.x]
basepython = python3.2
deps =
{[testenv]deps}
{[testenv]deps16}

[testenv:py32-1.7.x]
basepython = python3.2
deps =
{[testenv]deps}
{[testenv]deps17}

[testenv:py33-1.5.x]
basepython = python3.3
deps =
{[testenv]deps}
{[testenv]deps15}

[testenv:py33-1.6.x]
basepython = python3.3
deps =
{[testenv]deps}
{[testenv]deps16}

[testenv:py33-1.7.x]
basepython = python3.3
deps =
{[testenv]deps}
{[testenv]deps17}

0 comments on commit a35236b

Please sign in to comment.