Skip to content

Commit 5023fd2

Browse files
committed
Passing 0 case test on mock
1 parent e21bb5d commit 5023fd2

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/mock_vws/_mock_web_services_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -716,8 +716,8 @@ def target_summary(
716716
'upload_date': target.upload_date.strftime('%Y-%m-%d'),
717717
'active_flag': target.active_flag,
718718
'tracking_rating': target.tracking_rating,
719-
'total_recos': '',
720-
'current_month_recos': '',
721-
'previous_month_recos': '',
719+
'total_recos': 0,
720+
'current_month_recos': 0,
721+
'previous_month_recos': 0,
722722
}
723723
return json_dump(body)

tests/mock_vws/test_target_summary.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,5 +195,9 @@ class TestRecognitionCounts:
195195
Tests for the recognition counts in the summary.
196196
"""
197197

198-
def test_recognition(self):
198+
def test_recognition(self) -> None:
199+
"""
200+
See https://github.com/adamtheturtle/vws-python/issues/357 for
201+
implementing this.
202+
"""
199203
pass

0 commit comments

Comments
 (0)