Skip to content

Commit 8e5d462

Browse files
committed
Merge pull request #9 from crccheck/matrix
Increase testing coverage
2 parents 5fe0184 + 8d35b57 commit 8e5d462

File tree

4 files changed

+45
-10
lines changed

4 files changed

+45
-10
lines changed

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
language: python
22
env:
3-
- TOX_ENV=django14
4-
- TOX_ENV=django15
5-
- TOX_ENV=django16
3+
- TOX_ENV=py26django14
4+
- TOX_ENV=py26django15
5+
- TOX_ENV=py27django14
6+
- TOX_ENV=py27django15
7+
- TOX_ENV=py27django16
8+
- TOX_ENV=py33django16
69
install: "pip install tox"
710
script: tox -e $TOX_ENV

django_object_actions/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ def to_dict(tool_name):
3838
"""To represents the tool func as a dict with extra meta."""
3939
tool = getattr(self, tool_name)
4040
return dict(
41-
name=x,
42-
label=getattr(tool, 'label', x),
41+
name=tool_name,
42+
label=getattr(tool, 'label', tool_name),
4343
short_description=getattr(tool, 'short_description', ''))
4444

4545
context['objectactions'] = [to_dict(x) for x in self.objectactions]

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,15 @@
2020
description='A Django app for adding object tools to models',
2121
long_description=open('README.rst').read(),
2222
classifiers=[
23-
"Development Status :: 3 - Alpha",
23+
'Development Status :: 4 - Beta',
2424
"Framework :: Django",
2525
"Intended Audience :: Developers",
2626
"License :: OSI Approved :: Apache Software License",
2727
"Operating System :: OS Independent",
2828
"Programming Language :: Python :: 2",
29+
'Programming Language :: Python :: 2.6',
30+
'Programming Language :: Python :: 2.7',
31+
'Programming Language :: Python :: 3',
32+
'Programming Language :: Python :: 3.3',
2933
],
3034
)

tox.ini

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = django14,django15,django16
7+
envlist =
8+
py26django14,
9+
py27django14,
10+
py26django15,
11+
py27django15,
12+
py27django16,
13+
py33django16,
14+
815
downloadcache = {toxworkdir}/.cache
916

1017
[testenv]
@@ -14,17 +21,38 @@ deps =
1421
django-extensions>=0.9
1522
django-nose
1623

17-
[testenv:django14]
24+
[testenv:py26django14]
25+
basepython=python2.6
1826
deps =
1927
{[testenv]deps}
2028
django>=1.4,>1.5
2129

22-
[testenv:django15]
30+
[testenv:py26django15]
31+
basepython=python2.6
2332
deps =
2433
{[testenv]deps}
2534
django>=1.5,>1.6
2635

27-
[testenv:django16]
36+
[testenv:py27django14]
37+
basepython=python2.7
38+
deps =
39+
{[testenv]deps}
40+
django>=1.4,>1.5
41+
42+
[testenv:py27django15]
43+
basepython=python2.7
44+
deps =
45+
{[testenv]deps}
46+
django>=1.5,>1.6
47+
48+
[testenv:py27django16]
49+
basepython=python2.7
50+
deps =
51+
{[testenv]deps}
52+
django>=1.6,>1.5
53+
54+
[testenv:py33django16]
55+
basepython=python3.3
2856
deps =
2957
{[testenv]deps}
3058
django>=1.6,>1.5

0 commit comments

Comments
 (0)