Skip to content

Commit

Permalink
Add Python 3.12 compatibility (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
diceroll123 authored Nov 6, 2023
1 parent a28f967 commit b735c39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Typing :: Typed",
],
zip_safe=False,
Expand Down
5 changes: 3 additions & 2 deletions tests/test_arena.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import math
from typing import List, Tuple

from neofoodclub.nfc import NeoFoodClub
Expand Down Expand Up @@ -25,11 +26,11 @@ def test_first_arena_pirate_ids(nfc: NeoFoodClub) -> None:


def test_first_arena_odds(nfc: NeoFoodClub) -> None:
assert nfc.arenas[0].odds == 1.11025641025641
assert math.isclose(nfc.arenas[0].odds, 1.1102564102564103)


def test_first_arena_ratio(nfc: NeoFoodClub) -> None:
assert nfc.arenas[0].ratio == -0.09930715935334855
assert math.isclose(nfc.arenas[0].ratio, -0.09930715935334877)


def test_first_arena_negative(nfc: NeoFoodClub) -> None:
Expand Down

0 comments on commit b735c39

Please sign in to comment.