• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zappa / Zappa / 22707481604 / 3
75%
master: 75%

Build:
DEFAULT BRANCH: master
Ran 05 Mar 2026 07:50AM UTC
Files 14
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Mar 2026 07:39AM UTC coverage: 73.865% (-0.2%) from 74.025%
22707481604.3

push

github

web-flow
Fix WebSocket handler registry empty at runtime (#1430)

* :bug: Fix WebSocket handler registry empty at runtime (#1429)

Auto-detect the WebSocket handler module path at deploy time and write
WEBSOCKET_HANDLER_MODULE into zappa_settings.py so LambdaHandler imports
it on init, populating the decorator registry before events arrive.

- _detect_websocket_usage() returns dotted module path instead of bool
- load_settings() checks explicit websocket_handler_module setting first
- get_zappa_settings_string() writes WEBSOCKET_HANDLER_MODULE
- LambdaHandler.__init__ imports the module to trigger decorator registration

* :memo: Document websocket_handler_module setting in README

Update WebSocket "How It Works" section to explain runtime auto-import
and add websocket_handler_module as an explicit override option.
Add the setting to the Advanced Settings reference block.

* :white_check_mark: Address PR review feedback

- Rename test_websocket_handlers.py to test_ws_handlers_fixture.py to
  clarify it is a fixture, not a test class
- Add try/except around WEBSOCKET_HANDLER_MODULE import in handler.py
  with clear error logging instead of crashing cold starts
- Validate websocket_handler_module setting (type, .py suffix, dotted
  path format) with ClickException messages
- Tighten import detection to exact match on "zappa.websocket" to avoid
  false positives like "zappa.websocket_helpers"
- Handle __init__.py in path-to-module conversion (pkg/__init__.py -> pkg)

---------

Co-authored-by: shane <shane.cousins@kiconiaworks.com>

3564 of 4825 relevant lines covered (73.87%)

0.74 hits per line

Source Files on job py3.14 - 22707481604.3
  • Tree
  • List 14
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 22707481604
  • 0fb1a172 on github
  • Prev Job for on master (#22704795007.2)
  • Next Job for on master (#22883433937.4)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc