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

tests: fix failing tests for win platform (#347) #348

Merged

Conversation

nautics889
Copy link
Contributor

@nautics889 nautics889 commented Jul 9, 2023

This patch is for contributors who are developing on Windows platform. Some tests were failing because of \r\n instead of \n, the problem described in issue #347


Add checking for platform in some test cases and replacing \r\n with \n if the platform's name starts with "win".


p. s. i guess it would be great to move some fixtures in files (too much hardcoded multiline texts in tests modules) or generating them via Faker. I'd be glad to hear an outside perspective about that.

* add compatibility for win platforms in
  `test_run_with_privacy_enforcement()`

* add compatibility for win platforms in
  `test_run_without_privacy_enforcement()`
@gventuri gventuri merged commit a53312d into Sinaptik-AI:main Jul 10, 2023
3 checks passed
@gventuri
Copy link
Collaborator

@nautics889 thanks a lot for the contribution!!

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.

Some tests are failing on Windows platform
2 participants