You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both the tests for pygame.Surface.get_rect and pygame.Surface.get_frect lack a couple of tests for some of the main features of these methods. Using keyword arguments to set rect values. As well as checking whether appropriate exceptions are raised.
For both methods test:
whether using correct keyword argument(s) sets the appropriate rect attribute
that when using multiple different kwargs, only the last one is applied
that appropriate exceptions are raised when using kwarg names that don't match rect attributes (like centre instead of center)
For Rect:
add the difference between current get_rect and get_frect tests to get_rect (test position and instance type)
* Fix issue #2109: Added requested tests
* isolated test that only works when not using pypy
* Apply formatting
* formatting
* formatting
* added requested changes and merged latest main branch
* implemented requested changes, added more scenarios to test
---------
Co-authored-by: Dan Lawrence <danintheshed@gmail.com>
Both the tests for
pygame.Surface.get_rect
andpygame.Surface.get_frect
lack a couple of tests for some of the main features of these methods. Using keyword arguments to set rect values. As well as checking whether appropriate exceptions are raised.For both methods test:
centre
instead ofcenter
)For
Rect
:get_rect
andget_frect
tests toget_rect
(test position and instance type)pygame-ce/test/surface_test.py
Lines 587 to 605 in aff289d
The text was updated successfully, but these errors were encountered: