summaryrefslogtreecommitdiff
path: root/tests/test_stash.py
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2024-05-07 15:44:46 +0200
committerYuval Adam <_@yuv.al>2024-05-07 15:44:46 +0200
commitc0056b2d9f5175d06b39834b013d16fa5d63a485 (patch)
tree6391068bf0738b8e988db8d8e2ebe2c1ccda5396 /tests/test_stash.py
parent7bb5dc320e12ecdbb6cf514b11306df130e8a24c (diff)
Setup pytest and assert stash path
Diffstat (limited to 'tests/test_stash.py')
-rw-r--r--tests/test_stash.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_stash.py b/tests/test_stash.py
new file mode 100644
index 0000000..b87c882
--- /dev/null
+++ b/tests/test_stash.py
@@ -0,0 +1,9 @@
+from pathlib import Path
+from ymlstash import YmlStash
+
+
+def test_stash_path():
+ stash = YmlStash("foo")
+ assert stash.path == Path("foo")
+ stash = YmlStash(Path("foo"))
+ assert stash.path == Path("foo")