Browse Source

use Django's testcase class to speed things up

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
d012df8504
  1. 7
      pyweb/mumble/tests.py

7
pyweb/mumble/tests.py

@ -14,8 +14,7 @@
* GNU General Public License for more details. * GNU General Public License for more details.
""" """
from unittest import TestCase
from django.test import TestCase
from django.conf import settings from django.conf import settings
from models import * from models import *
@ -74,6 +73,10 @@ class DataReading( TestCase ):
""" Tests reading data from murmur using the low-level CTL methods. """ """ Tests reading data from murmur using the low-level CTL methods. """
def setUp( self ): def setUp( self ):
# BIG FAT WARNING: This sucks ass, because it assumes the tester has a
# Murmur database like the one I have.
# I definitely need to prepare Murmur somehow before running these tests.
# Just don't yet know how.
self.murmur = Mumble.objects.get(id=1); self.murmur = Mumble.objects.get(id=1);

Loading…
Cancel
Save