Skip to content

Commit

Permalink
Merge branch 'hhell/stuff' into 'master'
Browse files Browse the repository at this point in the history
fix(tests): fix for `--doctest-modules`

See merge request utilities/ntc!27
  • Loading branch information
Artem Vasenin committed Nov 18, 2021
2 parents 3e5d7d5 + 7c5a306 commit 3baec38
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ntc/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_updates(self) -> Optional[Dict[str, Any]]:
def _flat_to_structured(kv: Dict[str, Any], sep=".") -> Dict[str, Any]:
"""
>>> _flat_to_structured({"a.b.c": 1, "a.b2": 2})
{"a": {"b": {"c": 1}, "b2": 2}}
{'a': {'b': {'c': 1}, 'b2': 2}}
"""
structured = {}
for key, value in kv.items():
Expand Down
7 changes: 7 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from __future__ import annotations


def pytest_ignore_collect(path):
if "tests/data/" in str(path):
return False
return True

0 comments on commit 3baec38

Please sign in to comment.