Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Tests

::

python setup.py test
python -munittest

License
==================
Expand Down
1 change: 1 addition & 0 deletions changes/29.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update tests invocation method to avoid future breakages
1 change: 1 addition & 0 deletions giturlparse/platforms/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def __init__(self):

@staticmethod
def clean_data(data):
print(data)
data["path"] = ""
data["branch"] = ""
data["protocols"] = list(filter(lambda x: x, data["protocols"].split("+")))
Expand Down
1 change: 0 additions & 1 deletion giturlparse/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
from . import parse, rewrite # NOQA
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def towncrier_check(c): # NOQA
@task
def test(c):
"""Run test in local environment."""
c.run("python setup.py test")
c.run("python -munittest")


@task
Expand All @@ -103,8 +103,8 @@ def test_all(c):
def coverage(c):
"""Run test with coverage in local environment."""
c.run("coverage erase")
c.run("run setup.py test")
c.run("report -m")
c.run("coverage run -m unittest")
c.run("coverage report -m")


@task
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ envlist =
skip_missing_interpreters = true

[testenv]
commands = {env:COMMAND:python} setup.py test
commands = {env:COMMAND:python} -m unittest
deps =
-r{toxinidir}/requirements-test.txt
passenv =
Expand Down