# What this PR does ## Which issue(s) this PR fixes ## Checklist - [ ] Unit, integration, and e2e (if applicable) tests updated - [ ] Documentation added (or `pr:no public docs` PR label added if not required) - [ ] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not required) --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Rares Mardare <rares.mardare@grafana.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Joey Orlando <joey.orlando@grafana.com> Co-authored-by: Vadim Stepanov <vadimkerr@gmail.com> Co-authored-by: Yulia Shanyrova <yulia.shanyrova@grafana.com> Co-authored-by: Ildar Iskhakov <Ildar.iskhakov@grafana.com>
38 lines
983 B
Python
38 lines
983 B
Python
from apps.phone_notifications.phone_provider import PhoneProvider, ProviderFlags
|
|
|
|
|
|
class MockPhoneProvider(PhoneProvider):
|
|
"""
|
|
MockPhoneProvider exists only for tests, feel free to mock any method to imitate any use-case, exception, etc.
|
|
"""
|
|
|
|
def make_notification_call(self, number: str, text: str):
|
|
pass
|
|
|
|
def send_notification_sms(self, number: str, message: str):
|
|
pass
|
|
|
|
def make_call(self, number: str, text: str):
|
|
pass
|
|
|
|
def send_sms(self, number: str, text: str):
|
|
pass
|
|
|
|
def send_verification_sms(self, number: str):
|
|
pass
|
|
|
|
def make_verification_call(self, number: str):
|
|
pass
|
|
|
|
def finish_verification(self, number: str, code: str):
|
|
pass
|
|
|
|
@property
|
|
def flags(self) -> ProviderFlags:
|
|
return ProviderFlags(
|
|
configured=True,
|
|
test_sms=True,
|
|
test_call=True,
|
|
verification_call=True,
|
|
verification_sms=True,
|
|
)
|