Skip to content

Commit e365f57

Browse files
committed
LogManager class moved from core package to logs
1 parent 6b90bdb commit e365f57

File tree

7 files changed

+19
-3
lines changed

7 files changed

+19
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Changelog
22

33
## [Unreleased]
4+
### Changed
5+
- `LogManager` class moved from `core` package to `logs` package
46

57
## [5.2.3]
68
### Added

reportportal_client/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from requests.adapters import HTTPAdapter, Retry
2121

2222
from ._local import set_current
23-
from .core.log_manager import LogManager, MAX_LOG_BATCH_PAYLOAD_SIZE
23+
from .logs.log_manager import LogManager, MAX_LOG_BATCH_PAYLOAD_SIZE
2424
from .core.rp_requests import (
2525
HttpRequest,
2626
ItemStartRequest,

reportportal_client/client.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ from typing import Any, Dict, List, Optional, Text, Tuple, Union
22

33
from requests import Session
44

5-
from reportportal_client.core.log_manager import LogManager as LogManager
5+
from reportportal_client.logs.log_manager import LogManager as LogManager
66
from reportportal_client.core.rp_issues import Issue as Issue
77
from reportportal_client.steps import StepReporter
88

tests/logs/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"""This package contains unit tests for logging."""
2+
3+
# Copyright (c) 2022 EPAM Systems
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# https://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License

tests/logs/test_log_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from six.moves import mock
1717

1818
from reportportal_client import helpers
19-
from reportportal_client.core.log_manager import LogManager, \
19+
from reportportal_client.logs.log_manager import LogManager, \
2020
MAX_LOG_BATCH_PAYLOAD_SIZE
2121

2222
RP_URL = 'http://docker.local:8080'

0 commit comments

Comments
 (0)