Skip to content

Commit 336fa9c

Browse files
committed
test fix
1 parent c95793c commit 336fa9c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

functions-python/helpers/feed_status.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ def get_filters(status: str):
6161
if len(stable_feed_ids) > 0:
6262
filters.append(Feed.stable_feed_id.in_(stable_feed_ids))
6363

64+
return filters
65+
6466
for service_date_conditions, status in status_conditions:
6567
diff_counts[status] = (
6668
session.query(Feed)

functions-python/update_feed_status/tests/test_update_feed_status_main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def fetch_feeds(session: Session) -> Iterator[PartialFeed]:
3939
@with_db_session(db_url=default_db_url)
4040
def test_update_feed_status(db_session: Session) -> None:
4141
feeds_before: dict[str, PartialFeed] = {f.id: f for f in fetch_feeds(db_session)}
42-
result = dict(update_feed_statuses_query(db_session))
42+
result = dict(update_feed_statuses_query(db_session, []))
4343
assert result == {
4444
"inactive": 3,
4545
"active": 2,
@@ -79,7 +79,7 @@ def test_update_feed_status_failed_query():
7979
mock_update_query.update.side_effect = Exception("Mocked exception")
8080

8181
try:
82-
update_feed_statuses_query(mock_session)
82+
update_feed_statuses_query(mock_session, [])
8383
except Exception as e:
8484
assert str(e) == "Error updating feed statuses: Mocked exception"
8585

0 commit comments

Comments
 (0)