Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
django-taggit
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
a35236b2
authored
Feb 02, 2014
by
Florian Apolloner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added tox file.
parent
f4c9edde
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
99 additions
and
4 deletions
+99
-4
tests/models.py
+4
-4
tox.ini
+95
-0
No files found.
tests/models.py
View file @
a35236b2
...
@@ -50,7 +50,7 @@ class Pet(models.Model):
...
@@ -50,7 +50,7 @@ class Pet(models.Model):
class
HousePet
(
Pet
):
class
HousePet
(
Pet
):
trained
=
models
.
BooleanField
()
trained
=
models
.
BooleanField
(
default
=
False
)
# Test direct-tagging with custom through model
# Test direct-tagging with custom through model
...
@@ -84,7 +84,7 @@ class DirectPet(models.Model):
...
@@ -84,7 +84,7 @@ class DirectPet(models.Model):
class
DirectHousePet
(
DirectPet
):
class
DirectHousePet
(
DirectPet
):
trained
=
models
.
BooleanField
()
trained
=
models
.
BooleanField
(
default
=
False
)
# Test custom through model to model with custom PK
# Test custom through model to model with custom PK
...
@@ -114,7 +114,7 @@ class CustomPKPet(models.Model):
...
@@ -114,7 +114,7 @@ class CustomPKPet(models.Model):
return
self
.
name
return
self
.
name
class
CustomPKHousePet
(
CustomPKPet
):
class
CustomPKHousePet
(
CustomPKPet
):
trained
=
models
.
BooleanField
()
trained
=
models
.
BooleanField
(
default
=
False
)
# Test custom through model to a custom tag model
# Test custom through model to a custom tag model
...
@@ -143,7 +143,7 @@ class OfficialPet(models.Model):
...
@@ -143,7 +143,7 @@ class OfficialPet(models.Model):
return
self
.
name
return
self
.
name
class
OfficialHousePet
(
OfficialPet
):
class
OfficialHousePet
(
OfficialPet
):
trained
=
models
.
BooleanField
()
trained
=
models
.
BooleanField
(
default
=
False
)
class
Media
(
models
.
Model
):
class
Media
(
models
.
Model
):
...
...
tox.ini
0 → 100644
View file @
a35236b2
[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}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment