Skip to content

Fix failing extension-negotiation expectation in tests.test_websocket_additional_rfc6455 #22

@MichaelDecent

Description

@MichaelDecent

Summary

tests.test_websocket_additional_rfc6455 has a failing expectation in test_accept_rejects_extension_negotiation.

Reproduction

uv run python -m unittest -v tests.test_websocket_additional_rfc6455

Current result

  • Ran: 3 tests
  • Failures: 1
  • Failing test:
    • test_accept_rejects_extension_negotiation

Failure details

At:

  • tests/test_websocket_additional_rfc6455.py:57

Assertion:

with self.assertRaises(RuntimeError):
    ...

Observed:

  • No RuntimeError was raised
  • failure: AssertionError: RuntimeError not raised

Notes

The other two tests in this module currently pass, so the mismatch appears localized to extension-negotiation rejection behavior/expectation.

Acceptance criteria

  • Clarify intended behavior for extension negotiation in this scenario.
  • Align implementation or test expectation accordingly.
  • uv run python -m unittest -v tests.test_websocket_additional_rfc6455 passes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions