We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8e382d commit 855d259Copy full SHA for 855d259
1 file changed
tests/integration/test_mq_integration.py
@@ -582,6 +582,18 @@ def test_gateway_session_properties() -> None:
582
assert session.gateway_qmgr == config.qmgr_name
583
584
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
597
def _require_integration_enabled() -> None:
598
if getenv(INTEGRATION_ENV_FLAG) != "1":
599
pytest.skip(f"Set {INTEGRATION_ENV_FLAG}=1 to enable integration tests.")
0 commit comments