Skip to content

Commit bef0f15

Browse files
authored
Merge pull request #164 from nirtal85/strenum
fix: use StrEnum
2 parents 2feeca6 + 6068b94 commit bef0f15

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

enums/User.py

Lines changed: 6 additions & 6 deletions
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

Lines changed: 1 addition & 1 deletion
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)