Skip to content

Commit 173a6b4

Browse files
committed
fixing test coverage
1 parent f0a7132 commit 173a6b4

5 files changed

Lines changed: 11 additions & 8 deletions

File tree

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
install-dev:
55
pip install -U setuptools pip
66
pip install -r dev-requirements.txt
7-
pip install -U -e .[pygments]
87

98
.PHONY: install-test
109
install-test:

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@
6969

7070
from devtools.version import VERSION
7171
# The short X.Y version. Could change this if you're updating docs for a previous version.
72-
version = str(VERSION)
72+
version = 'v{}'.format(VERSION)
7373
# The full version, including alpha/beta/rc tags.
74-
release = str(VERSION)
74+
release = 'v{}'.format(VERSION)
7575

7676
# The language for content autogenerated by Sphinx. Refer to documentation
7777
# for a list of supported languages.

docs/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ For more details on ansi colours, see
117117

118118
.. include:: ../HISTORY.rst
119119

120-
.. |pypi| image:: https://img.shields.io/pypi/v/python-devtools.svg
121-
:target: https://pypi.python.org/pypi/python-devtools
122-
.. |license| image:: https://img.shields.io/pypi/l/python-devtools.svg
120+
.. |pypi| image:: https://img.shields.io/pypi/v/devtools.svg
121+
:target: https://pypi.python.org/pypi/devtools
122+
.. |license| image:: https://img.shields.io/pypi/l/devtools.svg
123123
:target: https://github.com/samuelcolvin/python-devtools

setup.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ max-complexity = 12
1414
python-tag = py35,py36
1515

1616
[coverage:run]
17-
source = devtools
1817
branch = True
1918

2019
[coverage:report]

tests/test_prettier.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import pytest
88

99
from devtools.ansi import strip_ansi
10-
from devtools.prettier import PrettyFormat, pformat, pprint
10+
from devtools.prettier import PrettyFormat, env_true, pformat, pprint
1111

1212

1313
def test_dict():
@@ -235,3 +235,8 @@ def test_call_args_py36():
235235
_fields=(1, 2, 3),
236236
{'a': 4},
237237
)"""
238+
239+
240+
def test_env_true():
241+
assert env_true('PATH') is False
242+
assert env_true('DOES_NOT_EXIST') is None

0 commit comments

Comments
 (0)