-
-
Notifications
You must be signed in to change notification settings - Fork 117
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add unitest for Window
#2230
Add unitest for Window
#2230
Conversation
@unittest.skipIf( | ||
os.environ.get("SDL_VIDEODRIVER") == "dummy", | ||
"requires the SDL_VIDEODRIVER to be a non dummy value", | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be great to get as many of these running without this check if possible.
This check means the test won't run on CI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested some of these skipped methods without SDL_VIDEODRIVER=dummy set and they didn't crash or anything, so we should not skip them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Tests all run locally and seem reasonable 馃憤
Looks like about 60% of them can now run on the CI. kind of inevitable that some of them won't be runnable with the display-less CI machines. Another reminder of why it is good to regularly test PRs locally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
run tests too locally
Add tests for maximum_size and minimum_size
This is so the existence of the attributes and their return types is still tested on CI, even if the full set/get path doesn't work with SDL_VIDEODRIVER=dummy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, I added some additional tests to get around the CI videodriver, for some added peace of mind when running tests on CI.
Thanks for working on this yunline! If my edits look good to you, you're free to merge.
No description provided.