瀏覽代碼

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 yaml
-from family_tree_yaml import Person
+
+from yamily import Person
 
 
 class _YamlLoader(yaml.SafeLoader):