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

Fix failing unit tests on Mac #384

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

trickpatty
Copy link

A handful of tests fail on Mac due to path format incompatibilities. These changes update tests and make them cross-platform compatible.

Scott Kearney added 5 commits August 9, 2024 09:57
Backslashes only work on Windows, but forward slashes are compatible with Windows, Mac, or Linux OSes. With change, TestLoadingConfigAndTryingToFetchManifest passes on Mac and Windows now.
Backslashes only work on Windows, but forward slashes are compatible with Windows, Mac, or Linux OSes. With change, TestRelationshipToDifferentNamespace passes on Mac and Windows now.
…bility.

Mac and Linux OSes do not resolve backslashes. Normalizing the string before loading ensures that model path matches the resolved corpus path.
…bility.

Mac and Linux OSes do not resolve backslashes. Normalizing the path before loading ensures that model path matches the resolved corpus path.
…bility.

Mac and Linux OSes do not resolve backslashes or drive letters. Normalizing the path before testing ensures that adapter path matches the system path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant