We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2eb6eb commit fd0db3cCopy full SHA for fd0db3c
tests/core/test_pecha.py
@@ -213,3 +213,12 @@ def test_pecha_github_publish(tmp_path):
213
pecha.publish()
214
215
print(pecha.pecha_path)
216
+
217
218
+def test_opf_path_OpenPechaGitRepo():
219
+ from openpecha.core.pecha import OpenPechaGitRepo
220
+ from openpecha import config
221
+ pecha_id = "P000108"
222
+ opf = OpenPechaGitRepo(pecha_id=pecha_id)
223
+ expected_opf_path = config.PECHAS_PATH / pecha_id/ f"{pecha_id}.opf"
224
+ assert opf.opf_path == expected_opf_path
0 commit comments