Fix failing extension-negotiation expectation in tests.test_websocket_additional_rfc6455

Open
#22 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
53/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python
Domain
backend, testing

Research direction

Read tests/test_websocket_additional_rfc6455.py, starting with test_accept_rejects_extension_negotiation around line 57, then trace the WebSocket accept and extension negotiation behavior it exercises. Run uv run python -m unittest -v tests.test_websocket_additional_rfc6455; done means the intended behavior is clarified, the test or implementation matches it, and the module passes.

Written by the indexing model from the issue text.

Description

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.
Dominant language
Python
Stars
3
Forks
3
Avg merge
7h 59m
Merged PRs (30d)
8

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tigrbl/tigrcorn

All issues in tigrbl/tigrcorn

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.