Spurce up tests a bit
parent
359e61408d
commit
1ae1717467
|
@ -4,6 +4,7 @@ from django.core.urlresolvers import reverse
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
from projects.models import Conf
|
||||||
|
|
||||||
data = """
|
data = """
|
||||||
{
|
{
|
||||||
|
@ -59,4 +60,8 @@ class Basic(TestCase):
|
||||||
|
|
||||||
def test_github(self):
|
def test_github(self):
|
||||||
resp = self.client.post('/github', {'payload': data})
|
resp = self.client.post('/github', {'payload': data})
|
||||||
|
self.assertEqual(Conf.objects.count(), 1)
|
||||||
|
conf = Conf.objects.all()[0]
|
||||||
|
self.assertEqual(conf.theme, 'default')
|
||||||
|
self.assertTrue(conf.path is not None)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue