Skip to content

Commit

Permalink
Merge pull request #363 from reportportal/develop
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
HardNorth authored Mar 27, 2024
2 parents 51fe2ca + 9af636d commit d537e44
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Changelog

## [Unreleased]
### Fixed
- Issue [#362](https://github.com/reportportal/agent-python-pytest/issues/362): Debug mode passing, by @HardNorth

## [5.4.0]
### Added
- Pytest version >= 8 support, by @HardNorth
### Removed
- `Packege` and `Dir` item types processing on test collection. This is done to preserve backward compatibility and improve name consistency, by @HardNorth
- `Package` and `Dir` item types processing on test collection. This is done to preserve backward compatibility and improve name consistency, by @HardNorth
### Changed
- `rp_issue_system_url` renamed to `rp_bts_issue_url` to be consistent with other agents, by @HardNorth

Expand Down
5 changes: 3 additions & 2 deletions pytest_reportportal/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
from .config import AgentConfig

try:
# noinspection PyProtectedMember
from pytest import Instance
except ImportError:
# in pytest >= 7.0 this type was removed
Expand Down Expand Up @@ -196,7 +197,6 @@ def _build_start_launch_rq(self):
'name': self._config.rp_launch,
'start_time': timestamp(),
'description': self._config.rp_launch_description,
'mode': self._config.rp_mode,
'rerun': self._config.rp_rerun,
'rerun_of': self._config.rp_rerun_of
}
Expand Down Expand Up @@ -897,7 +897,8 @@ def start(self) -> None:
log_batch_payload_size=self._config.rp_log_batch_payload_size,
launch_uuid_print=self._config.rp_launch_uuid_print,
print_output=self._config.rp_launch_uuid_print_output,
http_timeout=self._config.rp_http_timeout
http_timeout=self._config.rp_http_timeout,
mode=self._config.rp_mode
)
if hasattr(self.rp, "get_project_settings"):
self.project_settings = self.rp.get_project_settings()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from setuptools import setup


__version__ = '5.4.0'
__version__ = '5.4.1'


def read_file(fname):
Expand Down
10 changes: 4 additions & 6 deletions tests/integration/test_debug_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ def test_launch_mode(mock_client_init, mode, expected_mode):
variables=variables)
assert int(result) == 0, 'Exit code should be 0 (no errors)'

mock_client = mock_client_init.return_value
assert mock_client.start_launch.call_count == 1, \
'"start_launch" method was not called'
assert mock_client_init.call_count == 1, "client wasn't initialized"

call_args = mock_client.start_launch.call_args_list
start_launch_kwargs = call_args[0][1]
assert start_launch_kwargs['mode'] == expected_mode
init_kwargs = mock_client_init.call_args_list[0][1]
assert 'mode' in init_kwargs
assert init_kwargs['mode'] == expected_mode

0 comments on commit d537e44

Please sign in to comment.