Skip to content

Commit

Permalink
fulfill tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AHReccese committed May 21, 2024
1 parent eaeb95f commit 2418228
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_dmeta.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
from dmeta.functions import update, update_all, clear, clear_all
import os

TESTS_DIR_PATH = os.path.join(os.getcwd(), "tests")

def test_clear():
clear("test_a.docx")
clear(os.path.join(TESTS_DIR_PATH, "test_a.docx"))
# check the clearance


Expand All @@ -13,9 +15,9 @@ def test_clear_all():

def test_update():
# test meta-data is updated
update("config.json","test_a.docx")
update(os.path.join(TESTS_DIR_PATH, "config.json"), os.path.join(TESTS_DIR_PATH, "test_a.docx"))


def test_update_all():
# test all files meta-data are updated
update_all("config.json")
update_all(os.path.join(TESTS_DIR_PATH, "config.json"))

0 comments on commit 2418228

Please sign in to comment.