change notifications duration
This commit is contained in:
parent
18c76f1340
commit
b2e7c84913
@ -29,7 +29,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% for message in messages %}
|
{% for message in messages %}
|
||||||
<script>create_notification('{{message}}','','{{message.tags}}',5000)</script>
|
<script>create_notification('{{message}}','','{{message.tags}}',2000)</script>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% block form %}
|
{% block form %}
|
||||||
|
@ -72,7 +72,7 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{% for message in messages %}
|
{% for message in messages %}
|
||||||
<script>create_notification('{{message}}','','{{message.tags}}',5000)</script>
|
<script>create_notification('{{message}}','','{{message.tags}}',2000)</script>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,3 +1,22 @@
|
|||||||
from django.test import TestCase
|
from django.test import TestCase, Client
|
||||||
|
import access_controller.settings as sets
|
||||||
|
from django.urls import reverse
|
||||||
|
|
||||||
|
|
||||||
# Create your tests here.
|
# Create your tests here.
|
||||||
|
class RegistrationTestCase(TestCase):
|
||||||
|
fixtures=['data.json']
|
||||||
|
def setUp(self):
|
||||||
|
self.client = Client()
|
||||||
|
|
||||||
|
def test_registraion_complete(self):
|
||||||
|
resp = self.client.post(reverse('registration'), data={'email': 'idar.sokurov.05@mail.ru'})
|
||||||
|
self.assertRedirects(resp, reverse('password_reset_done'))
|
||||||
|
|
||||||
|
def test_registraion_fail(self):
|
||||||
|
resp = self.client.post(reverse('registration'), data={'email': 'idar.sokuov.05@mail.ru'})
|
||||||
|
self.assertRedirects(resp, reverse('django_registration_disallowed'))
|
||||||
|
|
||||||
|
def test_registraion_emaiol(self):
|
||||||
|
resp = self.client.post(reverse('registration'), data={'email': '123@test.ru'})
|
||||||
|
self.assertRedirects(resp, reverse('django_registration_disallowed'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user