mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-11 09:27:56 -04:00
clean flake8 except provider code
This commit is contained in:
@@ -25,4 +25,4 @@ class SmsClient(Client):
|
||||
raise NotImplementedError("TODO Need to implement.")
|
||||
|
||||
def get_name(self):
|
||||
raise NotImplementedError("TODO Need to implement.")
|
||||
raise NotImplementedError("TODO Need to implement.")
|
||||
|
||||
@@ -20,7 +20,7 @@ class AwsSnsClient(SmsClient):
|
||||
self.current_app = current_app
|
||||
self.statsd_client = statsd_client
|
||||
self.long_code_regex = re.compile(r"^\+1\d{10}$")
|
||||
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
return 'sns'
|
||||
@@ -86,4 +86,4 @@ class AwsSnsClient(SmsClient):
|
||||
raise ValueError("No valid numbers found for SMS delivery")
|
||||
|
||||
def _send_with_dedicated_phone_number(self, sender):
|
||||
return sender and re.match(self.long_code_regex, sender)
|
||||
return sender and re.match(self.long_code_regex, sender)
|
||||
|
||||
Reference in New Issue
Block a user