Skip to content

Commit 855d259

Browse files
wphillipmoorewphillipmoore-claude
andauthored
test: add session state populated after command integration test (#423)
Co-authored-by: wphillipmoore-claude <255925739+wphillipmoore-claude@users.noreply.github.com>
1 parent e8e382d commit 855d259

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

tests/integration/test_mq_integration.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,18 @@ def test_gateway_session_properties() -> None:
582582
assert session.gateway_qmgr == config.qmgr_name
583583

584584

585+
def test_session_state_populated_after_command() -> None:
586+
config = load_integration_config()
587+
session = _build_session(config)
588+
589+
session.display_qmgr()
590+
591+
assert session.last_http_status is not None
592+
assert session.last_response_text is not None
593+
assert session.last_response_payload is not None
594+
assert session.last_command_payload is not None
595+
596+
585597
def _require_integration_enabled() -> None:
586598
if getenv(INTEGRATION_ENV_FLAG) != "1":
587599
pytest.skip(f"Set {INTEGRATION_ENV_FLAG}=1 to enable integration tests.")

0 commit comments

Comments
 (0)