Commit 7ebf0a3
authored
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 tests1 parent d4210dc commit 7ebf0a3
File tree
55 files changed
+6424
-7153
lines changed- sdl2
- ext
- test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
55 files changed
+6424
-7153
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
| |||
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
85 | | - | |
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
| |||
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
105 | 110 | | |
106 | 111 | | |
107 | 112 | | |
| |||
123 | 128 | | |
124 | 129 | | |
125 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
126 | 144 | | |
127 | 145 | | |
128 | 146 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
141 | 162 | | |
142 | 163 | | |
143 | 164 | | |
| |||
146 | 167 | | |
147 | 168 | | |
148 | 169 | | |
149 | | - | |
150 | | - | |
151 | 170 | | |
152 | 171 | | |
153 | 172 | | |
154 | 173 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
167 | 188 | | |
168 | 189 | | |
169 | 190 | | |
170 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
171 | 195 | | |
172 | 196 | | |
173 | 197 | | |
174 | 198 | | |
175 | 199 | | |
176 | 200 | | |
177 | | - | |
178 | 201 | | |
179 | 202 | | |
180 | 203 | | |
181 | 204 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | 205 | | |
187 | 206 | | |
188 | 207 | | |
| |||
192 | 211 | | |
193 | 212 | | |
194 | 213 | | |
195 | | - | |
196 | 214 | | |
197 | 215 | | |
198 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | 144 | | |
151 | 145 | | |
152 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
467 | 460 | | |
| 461 | + | |
| 462 | + | |
468 | 463 | | |
469 | 464 | | |
470 | 465 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| 366 | + | |
366 | 367 | | |
367 | 368 | | |
368 | 369 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
| 191 | + | |
190 | 192 | | |
191 | 193 | | |
192 | 194 | | |
| |||
195 | 197 | | |
196 | 198 | | |
197 | 199 | | |
| 200 | + | |
| 201 | + | |
198 | 202 | | |
199 | 203 | | |
200 | 204 | | |
| |||
204 | 208 | | |
205 | 209 | | |
206 | 210 | | |
207 | | - | |
208 | | - | |
209 | 211 | | |
210 | 212 | | |
211 | 213 | | |
| |||
240 | 242 | | |
241 | 243 | | |
242 | 244 | | |
243 | | - | |
244 | | - | |
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
0 commit comments