소스 검색

pytest: permanently enable doctest

Fabian Peter Hammerle 4 년 전
부모
커밋
27bdc55133
3개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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 typing
 
 
 import yaml
 import yaml
-from family_tree_yaml import Person
+
+from yamily import Person
 
 
 
 
 class _YamlLoader(yaml.SafeLoader):
 class _YamlLoader(yaml.SafeLoader):