Skip to content

Commit

Permalink
duplicate and separate doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Feb 27, 2019
1 parent f9911c5 commit bc39a51
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pytest.ini
@@ -1,3 +1,3 @@
[pytest]
flake8-ignore = E501
addopts = --flake8 --doctest-modules
addopts = --flake8
7 changes: 7 additions & 0 deletions tests/test_functions.py
@@ -0,0 +1,7 @@
import nbstripout


def test_pos_recursive():
d = {'a': {'b': 1, 'c': 2}}
assert nbstripout.pop_recursive(d, 'a.c') == 2
assert d == {'a': {'b': 1}}

0 comments on commit bc39a51

Please sign in to comment.