Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: actions/checkout@v4

- name: Generate versions
uses: HardNorth/github-version-generate@v1
uses: HardNorth/github-version-generate@daf138e2557c0bb49affe49bd7d79671dc8bfb3f
with:
version-source: file
version-file: ${{ env.VERSION_FILE }}
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog

## [Unreleased]
### Changed
- Client version updated on [5.7.6](https://github.com/reportportal/client-Python/releases/tag/5.7.6), by @HardNorth

## [5.1.2]
### Added
- Microseconds precision for timestamps, by @HardNorth
### Changed
Expand Down
19 changes: 10 additions & 9 deletions behave_reportportal/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class Config(object):
launch_name: str
launch_description: Optional[str]
launch_attributes: Optional[list[str]]
debug_mode: bool
debug_mode: Optional[bool]
is_skipped_an_issue: bool
retries: Optional[int]
rerun: bool
Expand Down Expand Up @@ -128,16 +128,17 @@ def __init__(

self.launch_name = launch_name or DEFAULT_LAUNCH_NAME
self.launch_description = launch_description
self.launch_attributes = launch_attributes and launch_attributes.split()
self.debug_mode = to_bool(debug_mode or "False")
self.is_skipped_an_issue = to_bool(is_skipped_an_issue or "False")
self.launch_attributes = launch_attributes.split() if launch_attributes else None
self.debug_mode = to_bool(debug_mode)
skipped_an_issue_bool = to_bool(is_skipped_an_issue)
self.is_skipped_an_issue = skipped_an_issue_bool if skipped_an_issue_bool is not None else True
self.retries = int(retries) if retries is not None else None
self.rerun = to_bool(rerun or "False")
self.rerun = to_bool(rerun) or False
self.rerun_of = rerun_of
self.log_batch_size = (log_batch_size and int(log_batch_size)) or 20
self.log_batch_size = int(log_batch_size) if log_batch_size else 20
self.log_batch_payload_limit = (
log_batch_payload_limit and int(log_batch_payload_limit)
) or MAX_LOG_BATCH_PAYLOAD_SIZE
int(log_batch_payload_limit) if log_batch_payload_limit else MAX_LOG_BATCH_PAYLOAD_SIZE
)

if step_based and not log_layout:
warn(
Expand All @@ -159,7 +160,7 @@ def __init__(
self.oauth_client_secret = oauth_client_secret
self.oauth_scope = oauth_scope

self.launch_uuid_print = to_bool(launch_uuid_print or "False")
self.launch_uuid_print = to_bool(launch_uuid_print) or False
launch_uuid_print_output_strip = launch_uuid_print_output.strip() if launch_uuid_print_output else ""
self.launch_uuid_print_output = (
OutputType[launch_uuid_print_output_strip.upper()] if launch_uuid_print_output_strip else OutputType.STDOUT
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
behave==1.3.3
prettytable>=3.6.0, <=3.17.0
reportportal-client==5.7.4
reportportal-client==5.7.6
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

from setuptools import setup

__version__ = "5.1.2"
__version__ = "5.1.3"


def read_file(fname):
Expand Down
4 changes: 2 additions & 2 deletions tests/units/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,11 @@ def test_read_config_default_values(mock_cp):
expect(cfg.api_key is None)
expect(cfg.project is None)
expect(cfg.launch_name == DEFAULT_LAUNCH_NAME)
expect(cfg.debug_mode is False)
expect(cfg.debug_mode is None)
expect(cfg.log_layout is LogLayout.SCENARIO)
expect(cfg.launch_attributes is None)
expect(cfg.launch_description is None)
expect(cfg.is_skipped_an_issue is False)
expect(cfg.is_skipped_an_issue is True)
expect(cfg.retries is None)
expect(cfg.rerun is False)
expect(cfg.rerun_of is None)
Expand Down
2 changes: 1 addition & 1 deletion tests/units/test_rp_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def test_create_rp_service_init(mock_rps):
"A",
"C",
api_key="B",
is_skipped_an_issue=False,
is_skipped_an_issue=True,
launch_uuid=None,
retries=None,
mode="DEFAULT",
Expand Down
Loading