proejct commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
"""Fixture für die headless bediente Anwendung."""
|
||||
|
||||
import random
|
||||
from collections.abc import Iterator
|
||||
|
||||
import pygame
|
||||
import pytest
|
||||
|
||||
from sandbox.main import App
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def app() -> Iterator[App]:
|
||||
"""Frische Anwendung mit reproduzierbaren Zufallsfarben."""
|
||||
application = App(rng=random.Random(0))
|
||||
pygame.event.clear()
|
||||
yield application
|
||||
application.close()
|
||||
Reference in New Issue
Block a user