Browse Source

pytest: permanently enable doctest

Fabian Peter Hammerle 4 years ago
parent
commit
27bdc55133
3 changed files with 4 additions and 1 deletions
  1. 2 0
      pytest.ini
  2. 0 0
      yamily/__init__.py
  3. 2 1
      yamily/yaml.py

+ 2 - 0
pytest.ini

@@ -0,0 +1,2 @@
+[pytest]
+addopts = --doctest-modules

+ 0 - 0
family_tree_yaml/__init__.py → yamily/__init__.py


+ 2 - 1
family_tree_yaml/yaml.py → yamily/yaml.py

@@ -2,7 +2,8 @@ import pathlib
 import typing
 
 import yaml
-from family_tree_yaml import Person
+
+from yamily import Person
 
 
 class _YamlLoader(yaml.SafeLoader):