mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 10:31:50 +01:00
fix: chores (#565)
This commit is contained in:
@@ -54,9 +54,9 @@ class TestFiles:
|
||||
"""Test abspath function with a nonexistent file/directory as relative_to."""
|
||||
nonexistent_path = "nonexistent/path"
|
||||
|
||||
# Test with a relative path
|
||||
# Test with a relative path; should still yield an absolute path
|
||||
result = abspath("test/path", nonexistent_path)
|
||||
expected = os.path.normpath(os.path.join(nonexistent_path, "test/path"))
|
||||
expected = os.path.normpath(os.path.join(os.path.abspath(nonexistent_path), "test/path"))
|
||||
assert result == expected
|
||||
|
||||
# Test with an absolute path
|
||||
|
||||
Reference in New Issue
Block a user