renamed email template file
This commit is contained in:
@@ -263,7 +263,6 @@ class CompanyViewSetTest(APITestCase):
|
|||||||
self.assertFalse(self.model.objects.filter(id=instance.pk).exists())
|
self.assertFalse(self.model.objects.filter(id=instance.pk).exists())
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class MyCompanyViewTest(APITestCase):
|
class MyCompanyViewTest(APITestCase):
|
||||||
"""CompanyViewset tests
|
"""CompanyViewset tests
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import logging
|
import logging
|
||||||
|
import json
|
||||||
|
|
||||||
from django.shortcuts import render, get_object_or_404
|
from django.shortcuts import render, get_object_or_404
|
||||||
from django.core.mail import EmailMessage
|
from django.core.mail import EmailMessage
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ def get_tokens_for_user(user):
|
|||||||
'access': str(refresh.access_token),
|
'access': str(refresh.access_token),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def get_auth_token(client, email, password):
|
def get_auth_token(client, email, password):
|
||||||
credentials = {
|
credentials = {
|
||||||
'email': email,
|
'email': email,
|
||||||
|
|||||||
Reference in New Issue
Block a user