Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix typo in variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Nov 28, 2022
1 parent 72c7be1 commit 4068079
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tests/storage/test_event_push_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def test_count_aggregation(self) -> None:

last_event_id: str

def _assert_counts(noitf_count: int, highlight_count: int) -> None:
def _assert_counts(notif_count: int, highlight_count: int) -> None:
counts = self.get_success(
self.store.db_pool.runInteraction(
"get-unread-counts",
Expand All @@ -168,7 +168,7 @@ def _assert_counts(noitf_count: int, highlight_count: int) -> None:
self.assertEqual(
counts.main_timeline,
NotifCounts(
notify_count=noitf_count,
notify_count=notif_count,
unread_count=0,
highlight_count=highlight_count,
),
Expand All @@ -182,7 +182,7 @@ def _assert_counts(noitf_count: int, highlight_count: int) -> None:
user_id,
)
)
self.assertEqual(sum(aggregate_counts.values()), noitf_count)
self.assertEqual(sum(aggregate_counts.values()), notif_count)

def _create_event(highlight: bool = False) -> str:
result = self.helper.send_event(
Expand Down Expand Up @@ -292,7 +292,7 @@ def test_count_aggregation_threads(self) -> None:
last_event_id: str

def _assert_counts(
noitf_count: int,
notif_count: int,
highlight_count: int,
thread_notif_count: int,
thread_highlight_count: int,
Expand All @@ -308,7 +308,7 @@ def _assert_counts(
self.assertEqual(
counts.main_timeline,
NotifCounts(
notify_count=noitf_count,
notify_count=notif_count,
unread_count=0,
highlight_count=highlight_count,
),
Expand All @@ -335,7 +335,7 @@ def _assert_counts(
)
)
self.assertEqual(
sum(aggregate_counts.values()), noitf_count + thread_notif_count
sum(aggregate_counts.values()), notif_count + thread_notif_count
)

def _create_event(
Expand Down Expand Up @@ -474,7 +474,7 @@ def test_count_aggregation_mixed(self) -> None:
last_event_id: str

def _assert_counts(
noitf_count: int,
notif_count: int,
highlight_count: int,
thread_notif_count: int,
thread_highlight_count: int,
Expand All @@ -490,7 +490,7 @@ def _assert_counts(
self.assertEqual(
counts.main_timeline,
NotifCounts(
notify_count=noitf_count,
notify_count=notif_count,
unread_count=0,
highlight_count=highlight_count,
),
Expand All @@ -517,7 +517,7 @@ def _assert_counts(
)
)
self.assertEqual(
sum(aggregate_counts.values()), noitf_count + thread_notif_count
sum(aggregate_counts.values()), notif_count + thread_notif_count
)

def _create_event(
Expand Down Expand Up @@ -677,7 +677,7 @@ def _create_event(type: str, content: JsonDict) -> str:
)
return result["event_id"]

def _assert_counts(noitf_count: int, thread_notif_count: int) -> None:
def _assert_counts(notif_count: int, thread_notif_count: int) -> None:
counts = self.get_success(
self.store.db_pool.runInteraction(
"get-unread-counts",
Expand All @@ -689,7 +689,7 @@ def _assert_counts(noitf_count: int, thread_notif_count: int) -> None:
self.assertEqual(
counts.main_timeline,
NotifCounts(
notify_count=noitf_count, unread_count=0, highlight_count=0
notify_count=notif_count, unread_count=0, highlight_count=0
),
)
if thread_notif_count:
Expand Down

0 comments on commit 4068079

Please sign in to comment.