-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate tests to modern pytest style (#215)
* Misc. cleanup * Add basic conftest module * Migrate simpler modules to new pytest style * Clean up init, error, and power module tests * Clean up pixels module tests * Fix RGB detection bug in ext.Color * Major cleanup of ext.Color tests * Migrate ext.surface to pytest * Fix spritesystem test failures on real macOS * Fix conftest mistake * Clean up spritesystem tests * Move cleanup fixture to conftest * Initial round of video module pytest cleanup * Fix video mode test with dummy driver * Fix ext.color on 2.7 and SDL init test for CI * Whoops * Try fixing color module and init tests again * Fix pixel test bug with SDL 2.0.5 * Initial cleanup/improvements for SDL_image tests * Fix video tests on smaller screens * Clear some non-critical ext errors * Ignore non-critical errors for image tests * Additional video test cleanup * Try fixing initial video driver detection * xfail problem test on PyPy * More video test overhaul * Migrate joystick tests to pytest * Fix new video tests with dummy driver * Improve handling of broken joystick subsystem * Fix tests with real X360 gamepad on Windows * Fix an error with a None-or-string test * Additional test fixes * More fixes and cleanup * Initial cleanup of ext.Renderer tests * Mark unreliable framerate test as xfail * Clean and expland gamecontroller tests * Finish video test rewrites * Mark hidapi init as xfail for now * Migrate more modules to pytest * Migrate timer and syswm tests to pytest * Migrate keyboard tests to pytest * Finish migrating SDL_image to pytest * xfail some timer tests for CI * Clean up and migrate render tests * Migrate sdl2.ext common tests to pytest * Avoid test failure on SDL 2.0.8 * Migrate more ext modules to pytest * Migrate the ext.draw and ext.ebs tests to pytest * Migrate more ext modules to pytest * Make annoying audiovisual tests optional * Migrate ext.window tests to pytest * Migrate ext.events and ext.renderer to pytest * Implement clipboard tests * Fix some tests on real hardware * Minor cleanup of the events tests * Fix more tests for local use * Migrate TTF tests to pytest * Migrate audio tests to pytest * Migrate empty mouse tests to pytest * Try fixing local tests * Relax audio format tests
- Loading branch information
Showing
55 changed files
with
6,424 additions
and
7,153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.