mirror of
https://github.com/smittix/intercept.git
synced 2026-06-17 01:49:45 -07:00
v2.26.0: fix SSE fanout crash and branded logo FOUC
- Fix SSE fanout thread AttributeError when source queue is None during interpreter shutdown by snapshotting to local variable with null guard - Fix branded "i" logo rendering oversized on first page load (FOUC) by adding inline width/height to SVG elements across 10 templates - Bump version to 2.26.0 in config.py, pyproject.toml, and CHANGELOG.md Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
"""Tests for configuration module."""
|
||||
|
||||
import os
|
||||
import pytest
|
||||
|
||||
|
||||
class TestConfigEnvVars:
|
||||
@@ -9,7 +7,7 @@ class TestConfigEnvVars:
|
||||
|
||||
def test_default_values(self):
|
||||
"""Test that default values are set."""
|
||||
from config import PORT, HOST, DEBUG
|
||||
from config import DEBUG, HOST, PORT
|
||||
|
||||
assert PORT == 5050
|
||||
assert HOST == '0.0.0.0'
|
||||
@@ -22,6 +20,7 @@ class TestConfigEnvVars:
|
||||
|
||||
# Re-import to get new values
|
||||
import importlib
|
||||
|
||||
import config
|
||||
importlib.reload(config)
|
||||
|
||||
@@ -38,6 +37,7 @@ class TestConfigEnvVars:
|
||||
monkeypatch.setenv('INTERCEPT_PORT', 'invalid')
|
||||
|
||||
import importlib
|
||||
|
||||
import config
|
||||
importlib.reload(config)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user