Skip to content

Commit

Permalink
Deal with Windows paths in test case
Browse files Browse the repository at this point in the history
  • Loading branch information
danielballan committed Nov 5, 2024
1 parent 2aed6f4 commit 639cc26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tiled/_tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@ def test_ensure_specified_sql_driver():
assert ensure_specified_sql_driver("./test.db") == "sqlite+aiosqlite:///test.db"
# Absolute path
assert (
ensure_specified_sql_driver("/tmp/test.db")
== "sqlite+aiosqlite:////tmp/test.db"
ensure_specified_sql_driver(Path("/tmp/test.db"))
== f"sqlite+aiosqlite:///{Path('/tmp/test.db')}"
)

0 comments on commit 639cc26

Please sign in to comment.