chore(api): convert BaseQueueDispatcher from ABC to Protocol (#37200)

This commit is contained in:
Eric Cao
2026-06-09 02:56:29 +00:00
committed by GitHub
parent 8a1c0cf5ab
commit f948e442e0
2 changed files with 6 additions and 16 deletions
@@ -1,9 +1,6 @@
from unittest.mock import patch
import pytest
from services.workflow.queue_dispatcher import (
BaseQueueDispatcher,
ProfessionalQueueDispatcher,
QueueDispatcherManager,
QueuePriority,
@@ -35,10 +32,6 @@ class TestDispatchers:
assert d.get_queue_name() == QueuePriority.SANDBOX
assert d.get_priority() == 10
def test_base_dispatcher_is_abstract(self):
with pytest.raises(TypeError):
BaseQueueDispatcher()
class TestQueueDispatcherManager:
@patch("services.workflow.queue_dispatcher.BillingService")