Adding skips where we don't yet have real tests but want to keep the files around and still have an accurate test count in the meantime. Addresses #51.

pull/85/merge
Neal Todd 2014-02-21 12:46:23 +00:00
rodzic 84602f7b07
commit 92af717a7b
4 zmienionych plików z 26 dodań i 1 usunięć

Wyświetl plik

@ -5,9 +5,12 @@ when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""
import unittest
from django.test import TestCase
@unittest.skip("Need real tests")
class SimpleTest(TestCase):
def test_basic_addition(self):
"""

Wyświetl plik

@ -5,9 +5,12 @@ when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""
import unittest
from django.test import TestCase
@unittest.skip("Need real tests")
class SimpleTest(TestCase):
def test_basic_addition(self):
"""

Wyświetl plik

@ -13,7 +13,7 @@ class UserCreationForm(BaseUserCreationForm):
required=False,
help_text=_("If ticked, this user has the ability to manage user accounts.")
)
email = forms.EmailField(required=True, label=_("Email"))
first_name = forms.CharField(required=True, label=_("First Name"))
last_name = forms.CharField(required=True, label=_("Last Name"))

Wyświetl plik

@ -0,0 +1,19 @@
"""
This file demonstrates writing tests using the unittest module. These will pass
when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""
import unittest
from django.test import TestCase
@unittest.skip("Need real tests")
class SimpleTest(TestCase):
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
"""
self.assertEqual(1 + 1, 2)