Skip to content

Commit

Permalink
Improve test (ianlini#15)
Browse files Browse the repository at this point in the history
* replace nose with pytest

* refactor tests to use pytest

* fully remove nose

* fix tox

* test python 3.8

* add python 3.8 support to classifiers
  • Loading branch information
ianlini authored Sep 13, 2019
1 parent ca2ace2 commit 8922007
Show file tree
Hide file tree
Showing 11 changed files with 351 additions and 239 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ trim_trailing_whitespace = true
insert_final_newline = true
indent_size = 2

[*.py]
[*.{py,ini,cfg}]
indent_size = 4

[*.md]
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ nosetests.xml
coverage.xml
*,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
Expand Down Expand Up @@ -90,5 +91,3 @@ ENV/

# VS Code settings
.vscode

.noseids
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ matrix:
- python: '3.5'
- python: '3.6'
- python: '3.7'
dist: xenial
sudo: true
- python: '3.8-dev'
- python: '3.6'
env: TOXENV=flake8

Expand Down
3 changes: 2 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
nose = "*"
tox = "*"
flake8 = "*"
docutils = "*"
pytest = "*"
coverage = "*"

[packages]
six = "*"
Expand Down
144 changes: 112 additions & 32 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion flatten_dict/flatten_dict.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
from collections import Mapping
try:
from collections.abc import Mapping
except ImportError:
from collections import Mapping

import six

Expand Down
Loading

0 comments on commit 8922007

Please sign in to comment.