Skip to content

Commit

Permalink
added test case for OpenpechaGitRepo opf_path
Browse files Browse the repository at this point in the history
  • Loading branch information
gangagyatso4364 committed Jan 15, 2024
1 parent b2eb6eb commit fd0db3c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/core/test_pecha.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,3 +213,12 @@ def test_pecha_github_publish(tmp_path):
pecha.publish()

print(pecha.pecha_path)


def test_opf_path_OpenPechaGitRepo():
from openpecha.core.pecha import OpenPechaGitRepo
from openpecha import config
pecha_id = "P000108"
opf = OpenPechaGitRepo(pecha_id=pecha_id)
expected_opf_path = config.PECHAS_PATH / pecha_id/ f"{pecha_id}.opf"
assert opf.opf_path == expected_opf_path

0 comments on commit fd0db3c

Please sign in to comment.