Skip to content

Commit

Permalink
Refactor enum implementation in test_enum.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nrbnlulu committed Sep 23, 2024
1 parent 6c5ebc2 commit 73ce325
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/enums/test_enum.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from enum import Enum, IntEnum, StrEnum
from enum import Enum, IntEnum

import pytest

Expand Down Expand Up @@ -170,7 +170,7 @@ def foo(self, foo: Foo) -> Foo:


def test_default_str_enum_implementation() -> None:
class Foo(StrEnum):
class Foo(str, Enum):
BAR = "bar"
BAZ = "baz"

Expand All @@ -188,7 +188,7 @@ def foo(self, foo: Foo) -> Foo:


def test_default_int_enum_implementation() -> None:
class Foo(IntEnum):
class Foo(int, Enum):
BAR = 1
BAZ = 2

Expand Down

0 comments on commit 73ce325

Please sign in to comment.