Add simple unit test for infoscreen
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
from django.test import TestCase
|
||||
from infoscreen.models import Rotation
|
||||
|
||||
class RotationTestCase(TestCase):
|
||||
def setUp(self):
|
||||
Rotation.objects.create(name="test_rot")
|
||||
|
||||
def test_rotation_created(self):
|
||||
rot = Rotation.objects.get(name="test_rot")
|
||||
self.assertIsNotNone(rot)
|
||||
|
||||
# Create your tests here.
|
||||
|
||||
Reference in New Issue
Block a user