Skip to content

Commit 7fc678c

Browse files
authored
Merge pull request #47 from PamelaM/master
Update tox.ini to support 2.1dev djangotip and 2.0b1
2 parents fa2c606 + e7dc1d4 commit 7fc678c

File tree

4 files changed

+20
-13
lines changed

4 files changed

+20
-13
lines changed

README.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ A `coverage.py`_ plugin to measure the coverage of Django templates.
1414
1515
Supported Python versions are 2.7, 3.4, 3.5 and 3.6.
1616

17-
Supported Django versions are 1.8 through 1.11.
17+
Supported Django versions are 1.8 through 2.0b1.
1818

1919
Supported coverage.py versions are 4.0 and higher.
2020

@@ -49,18 +49,20 @@ template files are included in the report.
4949
Caveats
5050
~~~~~~~
5151

52-
Files included by the ``{% ssi %}`` tag are not included in the coverage
53-
measurements.
54-
5552
Coverage.py can't tell whether a ``{% blocktrans %}`` tag used the singular or
5653
plural text, so both are marked as used if the tag is used.
5754

5855

5956
Changes
6057
~~~~~~~
6158

59+
v1.5.2 --- 2017-10-18
60+
----------------------
61+
62+
Validates support for Django version 2.0b1. Improves discovery of template files.
63+
6264
v1.5.1a --- 2017-04-05
63-
---------------------
65+
----------------------
6466

6567
Validates support for Django version 1.11. Testing for new package maintainer Pamela McA'Nulty
6668

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
setup(
2424
name='django_coverage_plugin',
25-
version='1.5.1a',
25+
version='1.5.2',
2626
description='Django template coverage.py plugin',
2727
author='Ned Batchelder',
2828
author_email='[email protected]',

tests/test_extends.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,10 @@ def test_ssi_unparsed(self):
168168
text = self.run_django_coverage(name="outer.html", context={'a': 17})
169169
self.assertEqual(text, "First\nInside {{ a }}\nJob\n\nLast\n")
170170
self.assert_analysis([1, 2, 3], name="outer.html")
171-
# nested.html is not among the measured files:
172-
self.assertEqual(self.measured_files(), ["templates/outer.html"])
171+
self.assertEqual(
172+
set(self.measured_files()),
173+
set(["templates/outer.html", "templates/nested.html"])
174+
)
173175

174176
def test_ssi_parsed(self):
175177
nested = self.make_template(name="nested.html", text="""\
@@ -186,5 +188,7 @@ def test_ssi_parsed(self):
186188
text = self.run_django_coverage(name="outer.html", context={'a': 17})
187189
self.assertEqual(text, "First\nInside 17\nJob\n\nLast\n")
188190
self.assert_analysis([1, 2, 3], name="outer.html")
189-
# nested.html is not among the measured files:
190-
self.assertEqual(self.measured_files(), ["templates/outer.html"])
191+
self.assertEqual(
192+
set(self.measured_files()),
193+
set(["templates/outer.html", "templates/nested.html"])
194+
)

tox.ini

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
# Don't test 'tip' on python27!
1717
envlist =
1818
py27-django{18,19,110,111,111tip},
19-
py34-django{18,19,110,111,111tip,tip},
20-
py35-django{18,19,110,111,111tip,tip},
21-
py36-django{18,19,110,111,111tip,tip},
19+
py34-django{18,19,110,111,111tip,20},
20+
py35-django{18,19,110,111,111tip,20,tip},
21+
py36-django{18,19,110,111,111tip,20,tip},
2222
check,doc
2323

2424
[testenv]
@@ -29,6 +29,7 @@ deps =
2929
django110: Django >=1.10, <1.11
3030
django111: Django >=1.11, <2.0
3131
django111tip: https://github.com/django/django/archive/stable/1.11.x.tar.gz
32+
django20: Django>=2.0b1,<2.1
3233
djangotip: https://github.com/django/django/archive/master.tar.gz
3334

3435
commands =

0 commit comments

Comments
 (0)