Skip to content

Commit

Permalink
Merge pull request #96 from barseghyanartur/dev
Browse files Browse the repository at this point in the history
Fix macOs (#95)
  • Loading branch information
barseghyanartur committed May 19, 2024
2 parents c23e4bf + 0ad5f39 commit 2ec4493
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions fake.py
Original file line number Diff line number Diff line change
Expand Up @@ -3219,10 +3219,14 @@ def test_storage_integration(self) -> None:
self.assertTrue(storage.exists(file.data["filename"]))

with self.subTest("Test storage.abspath using relative path"):
self.assertEqual(storage.abspath(str(file)), file.data["filename"])
self.assertEqual(
os.path.realpath(storage.abspath(str(file))),
os.path.realpath(file.data["filename"]),
)
with self.subTest("Test storage.abspath using absolute path"):
self.assertEqual(
storage.abspath(file.data["filename"]), file.data["filename"]
os.path.realpath(storage.abspath(file.data["filename"])),
os.path.realpath(file.data["filename"]),
)

with self.subTest("Test storage.unlink on absolute path"):
Expand Down

0 comments on commit 2ec4493

Please sign in to comment.