Skip to content

Commit

Permalink
Remove static.pyi
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Mar 20, 2024
1 parent a0560a6 commit a46276e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 29 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## [Unreleased]
### Removed
- `model.pyi` stub file, as we don't really need it anymore, by @HardNorth
- `model.pyi`, `static.pyi` stub files, as we don't really need them anymore, by @HardNorth

## [5.5.2]
### Added
Expand Down
4 changes: 2 additions & 2 deletions robotframework_reportportal/listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

from .model import Keyword, Launch, Test, LogMessage, Suite
from .service import RobotService
from .static import MAIN_SUITE_ID, PABOT_WIHOUT_LAUNCH_ID_MSG
from .static import MAIN_SUITE_ID, PABOT_WITHOUT_LAUNCH_ID_MSG
from .variables import Variables

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -217,7 +217,7 @@ def start_launch(self, attributes: Dict[str, Any], ts: Optional[Any] = None) ->
launch.robot_attributes = gen_attributes(self.variables.launch_attributes)
launch.doc = self.variables.launch_doc or launch.doc
if self.variables.pabot_used:
warn(PABOT_WIHOUT_LAUNCH_ID_MSG, stacklevel=2)
warn(PABOT_WITHOUT_LAUNCH_ID_MSG, stacklevel=2)
logger.debug('ReportPortal - Start Launch: {0}'.format(launch.robot_attributes))
self.service.start_launch(
launch=launch,
Expand Down
13 changes: 7 additions & 6 deletions robotframework_reportportal/static.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@

"""This module includes static variables of the agent."""

LOG_LEVEL_MAPPING = {
from typing import Dict

LOG_LEVEL_MAPPING: Dict[str, str] = {
'INFO': 'INFO',
'FAIL': 'ERROR',
'TRACE': 'TRACE',
Expand All @@ -24,11 +26,10 @@
'ERROR': 'ERROR',
'SKIP': 'INFO'
}
MAIN_SUITE_ID = 's1'
PABOT_WIHOUT_LAUNCH_ID_MSG = (
'Pabot library is used but RP_LAUNCH_UUID was not provided. Please, '
'initialize listener with the RP_LAUNCH_UUID argument.')
STATUS_MAPPING = {
MAIN_SUITE_ID: str = 's1'
PABOT_WITHOUT_LAUNCH_ID_MSG: str = ('Pabot library is used but RP_LAUNCH_UUID was not provided. Please, '
'initialize listener with the RP_LAUNCH_UUID argument.')
STATUS_MAPPING: Dict[str, str] = {
'PASS': 'PASSED',
'FAIL': 'FAILED',
'NOT RUN': 'SKIPPED',
Expand Down
20 changes: 0 additions & 20 deletions robotframework_reportportal/static.pyi

This file was deleted.

0 comments on commit a46276e

Please sign in to comment.