From d009e0fcdc5b9f3fbd549f4da345acf1137932ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= Date: Mon, 15 Jul 2024 14:05:49 +0100 Subject: [PATCH] chore: improved python testing Allows usage of pytest for testing python code. --- pytest.ini | 3 +++ src/python/boytacean/test/base.py | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 pytest.ini diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 00000000..63c4b9cf --- /dev/null +++ b/pytest.ini @@ -0,0 +1,3 @@ +[pytest] +python_files = *.py +testpaths = src/python/boytacean/test diff --git a/src/python/boytacean/test/base.py b/src/python/boytacean/test/base.py index 5b148566..96b9f63a 100644 --- a/src/python/boytacean/test/base.py +++ b/src/python/boytacean/test/base.py @@ -17,3 +17,5 @@ def test_pocket(self): gb.next_frame() self.assertEqual(gb.rom_title, "POCKET-DEMO") + self.assertEqual(gb.boot_rom_s, "DMG Bootix") + self.assertEqual(gb.clock_freq_s, "4.19 Mhz")