Skip to content

Commit 9f27416

Browse files
committed
wip
1 parent 5ef4b63 commit 9f27416

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/test_init.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
import sys
44
import unittest
55
import tempfile
6-
from unittest import mock
76

7+
from pathlib import Path
8+
from unittest import mock
89

910
from chipflow_lib import (
1011
ChipFlowError,
@@ -68,7 +69,7 @@ def test_ensure_chipflow_root_already_set(self):
6869
_ensure_chipflow_root.root = None
6970
result = _ensure_chipflow_root()
7071

71-
self.assertEqual(result, "/test/path")
72+
self.assertEqual(result, Path("/test/path"))
7273
self.assertIn("/test/path", sys.path)
7374

7475
def test_ensure_chipflow_root_not_set(self):
@@ -80,7 +81,7 @@ def test_ensure_chipflow_root_not_set(self):
8081
with mock.patch("os.getcwd", return_value="/mock/cwd"):
8182
result = _ensure_chipflow_root()
8283

83-
self.assertEqual(result, "/mock/cwd")
84+
self.assertEqual(result, Path("/mock/cwd"))
8485
self.assertEqual(os.environ["CHIPFLOW_ROOT"], "/mock/cwd")
8586
self.assertIn("/mock/cwd", sys.path)
8687

0 commit comments

Comments
 (0)