Browse Source

fix tests to package structure

Oz N Tiram 9 năm trước cách đây
mục cha
commit
3082d58a84
2 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 2 2
      tests/test_blogit2.py
  2. 2 2
      tests/test_tag.py

+ 2 - 2
tests/test_blogit2.py

@@ -1,8 +1,8 @@
 import os
 import shutil
 from tinydb import Query
-from blogit2 import find_new_posts, DataBase, Entry, Tag
-from blogit2 import CONFIG, new_build
+from blogit.blogit2 import find_new_posts, DataBase, Entry, Tag
+from blogit.blogit2 import CONFIG, new_build
 
 
 post_dummy = """title: Blog post {}

+ 2 - 2
tests/test_tag.py

@@ -1,8 +1,8 @@
 import os
 import shutil
 from tinydb import Query
-from blogit2 import find_new_posts, DB, Entry, Tag
-from blogit2 import CONFIG, new_build
+from blogit.blogit2 import find_new_posts, DB, Entry, Tag
+from blogit.blogit2 import CONFIG, new_build
 
 
 post_dummy = """title: Blog post {}