ADD: Added suport for test coverage.

This commit is contained in:
2019-03-28 12:55:58 +01:00
parent e934d42d0f
commit 1031442d9b
5 changed files with 14 additions and 5 deletions

View File

@@ -172,7 +172,7 @@ class SetPasswordFormTestCase(FormsTestCase):
self.assertTrue(self.client.login(username=self.test_username, password=new_password))
@skip('Function is implemented in SetPasswordView instead of SetPasswordForm')
def test_save_with_mail(self):
def test_save_with_mail(self): # pragma: no cover
new_passwords = [
u'"ä§ Mellon12'
'mellon12' * 128,

View File

@@ -40,7 +40,7 @@ class TestCase(SeleniumAuthMixin, SeleniumTestCase):
c.get(self.complete_url('/'))
try:
link = c.find_element_by_css_selector('#login-widget a')
except NoSuchElementException as e:
except NoSuchElementException as e: # pragma: no cover
self.fail(str(e))
def test_required_fields_in_login_form(self):