Skip to content

Commit

Permalink
Fix an unintended rename in #333
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed Apr 21, 2023
1 parent d492c4b commit 005bf2c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions tests/test_concurrency_limit.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,18 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from typing import TYPE_CHECKING, Any, Dict, List

from sygnal.notifications import ConcurrencyLimitedPushkin, Device, Notification
from typing import Any, Dict, List

from sygnal.notifications import (
ConcurrencyLimitedPushkin,
Device,
Notification,
NotificationContext,
)
from sygnal.utils import twisted_sleep

from tests.testutils import TestCase

if TYPE_CHECKING:
from sygnal.notifications import NotificationContext

DEVICE_GCM1_EXAMPLE = {
"app_id": "com.example.gcm",
"pushkey": "spqrg",
Expand All @@ -41,7 +43,7 @@


class SlowConcurrencyLimitedDummyPushkin(ConcurrencyLimitedPushkin):
async def dispatch_notification(
async def _dispatch_notification_unlimited(
self, n: Notification, device: Device, context: "NotificationContext"
) -> List[str]:
"""
Expand Down

0 comments on commit 005bf2c

Please sign in to comment.