Skip to content

Commit 6068b94

Browse files
Nir.TalNir.Tal
Nir.Tal
authored and
Nir.Tal
committed
fix: use StrEnum
1 parent 2feeca6 commit 6068b94

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

enums/User.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
from enum import Enum
1+
from enum import StrEnum, auto
22

33

4-
class User(Enum):
5-
STANDARD_USER = "standard_user"
6-
LOCKED_OUT_USER = "locked_out_user"
7-
PROBLEM_USER = "problem_user"
8-
PERFORMANCE_GLITCH_USER = "performance_glitch_user"
4+
class User(StrEnum):
5+
STANDARD_USER = auto()
6+
LOCKED_OUT_USER = auto()
7+
PROBLEM_USER = auto()
8+
PERFORMANCE_GLITCH_USER = auto()

tests/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def browser_context_args(
7676
"cookies": [
7777
{
7878
"name": "session-username",
79-
"value": request.param.value,
79+
"value": request.param,
8080
"url": base_url,
8181
}
8282
]

0 commit comments

Comments
 (0)