Erste Version
This commit is contained in:
commit
782b1850a3
1641 files changed
+512713
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import os
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import pygame.ftfont
|
||||
|
||||
from . import font_test
|
||||
|
||||
font_test.pygame_font = pygame.ftfont
|
||||
|
||||
for name in dir(font_test):
|
||||
obj = getattr(font_test, name)
|
||||
if isinstance(obj, type) and issubclass(obj, unittest.TestCase): # conditional and
|
||||
new_name = f"Ft{name}"
|
||||
globals()[new_name] = type(new_name, (obj,), {})
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user