import unittest import pygame from pathlib import Path from sliceitoff.stats import Stats from sliceitoff.status import Status class TestStatus(unittest.TestCase): def setUp(self): self.stats = Stats() self.status = Status( stats = self.stats) def test_can_create(self): self.assertNotEqual(None, self.status) def test_updating_without_crash(self): for _ in range(100): self.status.update(dt=100) for _ in range(100): self.stats.add_score(100) self.stats.percent -= 1 self.status.update(dt=100)