Skip to content

Commit

Permalink
fix test for macos ci
Browse files Browse the repository at this point in the history
  • Loading branch information
xmnlab committed Dec 22, 2023
1 parent f9f7d12 commit 7ee6c33
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,14 @@ def teardown(self):

def test_temp_dir(self):
"""Test the temp_dir created by the setup."""
assert self.temp_dir.name == str(Path(".").absolute())
tmp_dir = self.temp_dir.name
cwd = str(Path(".").absolute())

cwd_undesired_prefix = "/private"

if cwd.startswith(cwd_undesired_prefix):
cwd = cwd[len(cwd_undesired_prefix) :]
assert tmp_dir == cwd

def test_draft(self):
"""Test draft method."""
Expand Down

0 comments on commit 7ee6c33

Please sign in to comment.