Skip to content

Commit cde8362

Browse files
committed
Remove aenum
1 parent 0cfdf7a commit cde8362

3 files changed

Lines changed: 11 additions & 13 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## [Unreleased]
44
### Removed
5+
- `aenum` dependency, by @HardNorth
56
- `dill` dependency, by @HardNorth
67

78
## [5.6.2]

pytest_reportportal/service.py

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
import threading
2121
import traceback
2222
from collections import OrderedDict
23+
from enum import Enum
2324
from functools import wraps
2425
from os import curdir
2526
from time import sleep, time
2627
from typing import Any, Callable, Generator, Optional, Union
2728

2829
from _pytest.doctest import DoctestItem
29-
from aenum import Enum, auto, unique
3030
from py.path import local
3131
from pytest import Class, Function, Item, Module, Package, PytestWarning, Session
3232
from reportportal_client.aio import Task
@@ -125,25 +125,23 @@ def trim_docstring(docstring: str) -> str:
125125
return "\n".join(trimmed)
126126

127127

128-
@unique
129128
class LeafType(Enum):
130129
"""This class stores test item path types."""
131130

132-
DIR = auto()
133-
FILE = auto()
134-
CODE = auto()
135-
ROOT = auto()
136-
SUITE = auto()
137-
NESTED = auto()
131+
DIR = 1
132+
FILE = 2
133+
CODE = 3
134+
ROOT = 4
135+
SUITE = 5
136+
NESTED = 6
138137

139138

140-
@unique
141139
class ExecStatus(Enum):
142140
"""This class stores test item path types."""
143141

144-
CREATED = auto()
145-
IN_PROGRESS = auto()
146-
FINISHED = auto()
142+
CREATED = 1
143+
IN_PROGRESS = 2
144+
FINISHED = 3
147145

148146

149147
def check_rp_enabled(func):

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
reportportal-client==5.7.1
2-
aenum==3.1.17

0 commit comments

Comments
 (0)