mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
@@ -27,8 +27,14 @@ class TestBackendTestCase(SimpleTestCase, AnymailTestMixin):
|
||||
# Simple message useful for many tests
|
||||
self.message = AnymailMessage('Subject', 'Text Body', 'from@example.com', ['to@example.com'])
|
||||
|
||||
@staticmethod
|
||||
def get_send_count():
|
||||
"""Returns number of times "send api" has been called this test"""
|
||||
return len(recorded_send_params)
|
||||
|
||||
@staticmethod
|
||||
def get_send_params():
|
||||
"""Returns the params for the most recent "send api" call"""
|
||||
return recorded_send_params[-1]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user