-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made unit tests use pytest instead of unittest
- Loading branch information
Showing
24 changed files
with
900 additions
and
769 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
language: python | ||
python: | ||
- 2.7 | ||
- 3.3 | ||
- 3.4 | ||
- 3.5 | ||
- "2.7" | ||
- "pypy" | ||
- "3.3" | ||
- "3.4" | ||
- "3.5" | ||
- "3.6" | ||
install: | ||
- pip install codecov | ||
- pip install -r requirements.txt | ||
- pip install -r test-requirements.txt | ||
script: | ||
- coverage run -m unittest spans.tests.suite | ||
- pytest | ||
after_success: | ||
- codecov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
recursive-include spans *.py | ||
|
||
include MANIFEST.in LICENSE README.rst Makefile setup.py setup.cfg tox.ini doc/*.rst | ||
include MANIFEST.in LICENSE README.rst Makefile setup.py setup.cfg doc/*.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import spans | ||
import pytest | ||
|
||
from datetime import date, datetime, timedelta | ||
|
||
@pytest.fixture(autouse=True) | ||
def doctest_fixture(doctest_namespace): | ||
for attr in spans.__all__: | ||
doctest_namespace[attr] = getattr(spans, attr) | ||
|
||
doctest_namespace["date"] = date | ||
doctest_namespace["datetime"] = datetime | ||
doctest_namespace["timedelta"] = timedelta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--index-url https://pypi.python.org/simple/ | ||
-e . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
[bdist_wheel] | ||
universal = 1 | ||
|
||
[coverage:run] | ||
branch = True | ||
|
||
[tool:pytest] | ||
addopts = --doctest-glob="*.rst" --doctest-modules --cov=spans/ | ||
doctest_optionflags = ALLOW_UNICODE ALLOW_BYTES | ||
norecursedirs = _build | ||
testpaths = spans tests doc README.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.