text: """
  tests.unit.notify_test
  """
  from typing import ClassVar
  
  from doubles import expect
  
  from apartmentbot.models import Notification, User
  from notify import Notifier
  from tests.fixtures import notifications, users
  
  
  class TestNotifierApp:
      """ Tests the apartment bot notifier app """
      app: ClassVar[Notifier] = Notifier()
      user: ClassVar[User] = users.user()
      notification: ClassVar[Notification] = notifications.notification()
  
      def test_notify(self):
          """ Happy path """
          expect(self.app.user_service).get_active_users('hourly').and_return([self.user])
          expect(self.app.notification_service).get_scheduled_notifications(self.user).and_return([self.notification])
          expect(self.app.notification_service).send_notification(self.notification).and_return(True)
  
          self.app.notify('hourly')
  