From c0056b2d9f5175d06b39834b013d16fa5d63a485 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Tue, 7 May 2024 15:44:46 +0200 Subject: Setup pytest and assert stash path --- tests/test_stash.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/test_stash.py (limited to 'tests/test_stash.py') 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") -- cgit v1.3.1