File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 33import sys
44import unittest
55import tempfile
6- from unittest import mock
76
7+ from pathlib import Path
8+ from unittest import mock
89
910from 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
You can’t perform that action at this time.
0 commit comments