refactor: track background tasks in application lifecycle and clean up codebase
Backend / Lint i formatowanie (pull_request) Successful in 15s
Backend / Testy i kontrakt API (pull_request) Successful in 26s
Panel / Lint, typy i build (pull_request) Failing after 36s
Backend / Testowy build obrazu (pull_request) Successful in 1m34s

This commit is contained in:
mmacierzanka committed 2026-09-13 16:58:46 +02:00
1 parent 4f39e9acb1
commit dadb5f8b0e
19 files changed
+71 -55

No files matched your search

+3 -4
View File
@@ -60,11 +60,10 @@ class TestAudioEffects(unittest.TestCase):
fx = ToasterEffect(bit_depth=5, downsample=6)
pcm = struct.pack("<hh", 12345, -23456)
out = fx.process(pcm)
l, r = struct.unpack("<hh", out)
left, right = struct.unpack("<hh", out)
# Low 11 bits are zeroed due to 5-bit quantization
self.assertEqual(l & 0x07FF, 0)
self.assertEqual(r & 0x07FF, 0)
self.assertEqual(left & 0x07FF, 0)
self.assertEqual(right & 0x07FF, 0)
def test_pipeline_chains_multiple_effects_and_applies_volume(self):
pipeline = AudioEffectsPipeline(create_default_effects())