Skip to content

Commit 0d9afae

Browse files
committed
Small refactoring
1 parent 087ecdc commit 0d9afae

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

reportportal_client/_internal/static/defines.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,5 @@ class Priority(IntEnum):
8181
DEFAULT_PRIORITY = Priority.PRIORITY_MEDIUM
8282
LOW_PRIORITY = Priority.PRIORITY_LOW
8383
NOT_SET = _PresenceSentinel()
84+
85+
MICROSECONDS_MIN_VERSION = "5.13.2"

reportportal_client/aio/client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@
5555

5656
# noinspection PyProtectedMember
5757
from reportportal_client._internal.static.abstract import AbstractBaseClass, abstractmethod
58-
from reportportal_client._internal.static.defines import DEFAULT_LOG_LEVEL
58+
59+
# noinspection PyProtectedMember
60+
from reportportal_client._internal.static.defines import DEFAULT_LOG_LEVEL, MICROSECONDS_MIN_VERSION
5961

6062
# noinspection PyProtectedMember
6163
from reportportal_client.aio.tasks import EmptyTask, Task
@@ -96,7 +98,6 @@
9698

9799
DEFAULT_TASK_TIMEOUT: float = 60.0
98100
DEFAULT_SHUTDOWN_TIMEOUT: float = 120.0
99-
MICROSECONDS_MIN_VERSION = "5.13.2"
100101

101102

102103
class Client:

reportportal_client/client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444

4545
# noinspection PyProtectedMember
4646
from reportportal_client._internal.static.abstract import AbstractBaseClass
47+
48+
# noinspection PyProtectedMember
49+
from reportportal_client._internal.static.defines import MICROSECONDS_MIN_VERSION
4750
from reportportal_client.core.rp_issues import Issue
4851
from reportportal_client.core.rp_requests import (
4952
ErrorPrintingHttpRequest,
@@ -76,8 +79,6 @@
7679
logger = logging.getLogger(__name__)
7780
logger.addHandler(logging.NullHandler())
7881

79-
MICROSECONDS_MIN_VERSION = "5.13.2"
80-
8182

8283
class OutputType(Enum):
8384
"""Enum of possible print output types."""

0 commit comments

Comments
 (0)