Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-38552: (hotfix) Stop relying on current working directory in repr test #815

Merged
merged 1 commit into from
Apr 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 2 additions & 3 deletions tests/test_datastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -1821,11 +1821,10 @@ def testSequenceAccess(self):

def testRepr(self):
"""Verify __repr__ output."""
uris = DatasetRefURIs(ResourcePath("1/2/3"), {"comp": ResourcePath("a/b/c")})
uris = DatasetRefURIs(ResourcePath("/1/2/3"), {"comp": ResourcePath("/a/b/c")})
self.assertEqual(
repr(uris),
f'DatasetRefURIs(ResourcePath("file://{os.getcwd()}/1/2/3"), '
f"{{'comp': ResourcePath(\"file://{os.getcwd()}/a/b/c\")}})",
'DatasetRefURIs(ResourcePath("file:///1/2/3"), {\'comp\': ResourcePath("file:///a/b/c")})',
)


Expand Down