diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index db7304b..56b8e15 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/CHANGELOG.md b/CHANGELOG.md index eb895a2..64fa796 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/behave_reportportal/config.py b/behave_reportportal/config.py index 57c5f2b..ce66380 100644 --- a/behave_reportportal/config.py +++ b/behave_reportportal/config.py @@ -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 @@ -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( @@ -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 diff --git a/requirements.txt b/requirements.txt index 899feeb..3730ab0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 diff --git a/setup.py b/setup.py index 312a345..a4d0354 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ from setuptools import setup -__version__ = "5.1.2" +__version__ = "5.1.3" def read_file(fname): diff --git a/tests/units/test_config.py b/tests/units/test_config.py index a880a3f..60e55d2 100644 --- a/tests/units/test_config.py +++ b/tests/units/test_config.py @@ -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) diff --git a/tests/units/test_rp_agent.py b/tests/units/test_rp_agent.py index 765ff48..637a4ee 100644 --- a/tests/units/test_rp_agent.py +++ b/tests/units/test_rp_agent.py @@ -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",