Skip darwin tests on non-darwin platforms#2319
Conversation
|
Thanks for the fix. The right thing to skip this conditionally. I do wonder why tests aren't failing on Github. Much of the output is already mocked. Maybe due to different versions used somewhere. |
|
Ya know I was curious about why it wasn't failing in the Github tests too, and so I just looked into it a bit, and pretty sure it's becuase we're just not running this test at all in the Github actions. Looks like the Actions explicitly run I wonder if the Github runners even have enough of a desktop environment to have the |
|
That's likely the reason. The network tests didn't work on GH so they put them separately. You can still run them locally with For test_darwin.py (macOS only): For test_network_manager.py (Linux only): This applies the skip condition to all tests in the file automatically. When you run tests on the wrong platform, pytest will skip the entire file with the reason displayed. Source |
Description
Adds a simple check to skip a darwin-only test on non-darwin platforms
Related Issue
#2318
Motivation and Context
I want to be able to run the tests on my Linux machine :)
How Has This Been Tested?
Ran tests, they all ran except for the darwin one which was skipped as expected
Types of changes
Checklist:
I provide my contribution under the terms of the license of this repository and I affirm the Developer Certificate of Origin.