Skip to content

Commit

Permalink
chore: improved python testing
Browse files Browse the repository at this point in the history
Allows usage of pytest for testing python code.
  • Loading branch information
joamag committed Jul 15, 2024
1 parent 499049f commit d009e0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[pytest]
python_files = *.py
testpaths = src/python/boytacean/test
2 changes: 2 additions & 0 deletions src/python/boytacean/test/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit d009e0f

Please sign in to comment.