Skip to content

Commit 7c8149b

Browse files
committed
Fix tests
1 parent e4a07b8 commit 7c8149b

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
## [Unreleased]
44
### Added
55
- Logging on Behave "error" status, by @HardNorth
6+
### Changed
7+
- Unknown statuses now handled as `FAILED`, by @HardNorth
68

79
## [5.1.0]
810
### Added

tests/units/test_rp_agent.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from reportportal_client import BatchedRPClient, RPClient, ThreadedRPClient
2424
from reportportal_client.logs import MAX_LOG_BATCH_PAYLOAD_SIZE
2525

26-
from behave_reportportal.behave_agent import BehaveAgent, create_rp_service
26+
from behave_reportportal.behave_agent import BehaveAgent, convert_to_rp_status, create_rp_service
2727
from behave_reportportal.config import Config, LogLayout
2828
from behave_reportportal.utils import Singleton
2929

@@ -52,11 +52,11 @@ def clean_instances():
5252
("passed", "PASSED"),
5353
("skipped", "SKIPPED"),
5454
("failed", "FAILED"),
55-
("xyz", "PASSED"),
55+
("xyz", "FAILED"),
5656
],
5757
)
5858
def test_convert_to_rp_status(status, expected):
59-
actual = BehaveAgent.convert_to_rp_status(status)
59+
actual = convert_to_rp_status(status)
6060
assert actual == expected, f"Incorrect status:\nActual: {actual}\nExpected:{expected}"
6161

6262

0 commit comments

Comments
 (0)