Skip to content

Commit da14a29

Browse files
committed
Err with accessing current working dir, fix updated
1 parent 2d18ae3 commit da14a29

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/test_compile_llms.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@
1010

1111
class TestCompileLLMsTxt(unittest.TestCase):
1212
def setUp(self):
13+
self.original_cwd = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
14+
1315
# Create a temporary directory for test files
1416
self.test_dir = tempfile.mkdtemp()
1517
self.docs_dir = Path(self.test_dir)
1618

17-
# Save current working directory
18-
self.original_cwd = os.getcwd()
19+
# Change to the temporary directory
1920
os.chdir(self.docs_dir)
2021

2122
def tearDown(self):

0 commit comments

Comments
 (0)