mirror of
https://github.com/barkeser2002/offline-db.git
synced 2026-09-25 02:19:59 +03:00
Added test_badge_system_remaining.py, test_chat_badges.py, and test_badge_strategy_base.py to cover the remaining badge strategies and branches including ReviewBadgeStrategy, WatchTimeBadgeStrategy, AccountBadgeStrategy, ConsumptionBadgeStrategy, CompletionBadgeStrategy, GenreBadgeStrategy, SpecificGenreBadgeStrategy, CommunityBadgeStrategy, and ChatBadgeStrategy. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
9 lines
296 B
Python
9 lines
296 B
Python
from django.test import TestCase
|
|
from users.badge_system import BadgeStrategy
|
|
|
|
class BadgeStrategyTests(TestCase):
|
|
def test_check_not_implemented(self):
|
|
strategy = BadgeStrategy()
|
|
with self.assertRaises(NotImplementedError):
|
|
strategy.check(None, None, None, None)
|