mirror of
https://github.com/bspeice/itcs4180
synced 2025-04-20 23:01:34 -04:00
Add initial scavenger app, and basic models file
This commit is contained in:
parent
e8c22e86f2
commit
e26bf2419e
@ -0,0 +1,9 @@
|
|||||||
|
from django.db import models
|
||||||
|
|
||||||
|
class Location(models.Model):
|
||||||
|
|
||||||
|
key = models.CharField(max_length=32)
|
||||||
|
name = models.CharField(max_length=32)
|
||||||
|
riddle = models.CharField(max_length=512)
|
||||||
|
location = models.CharField(max_length=16)
|
||||||
|
result = models.TextField()
|
16
UNCCScavenger-Server/UNCCScavenger_Server/scavenger/tests.py
Normal file
16
UNCCScavenger-Server/UNCCScavenger_Server/scavenger/tests.py
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
"""
|
||||||
|
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.
|
||||||
|
"""
|
||||||
|
|
||||||
|
from django.test import TestCase
|
||||||
|
|
||||||
|
|
||||||
|
class SimpleTest(TestCase):
|
||||||
|
def test_basic_addition(self):
|
||||||
|
"""
|
||||||
|
Tests that 1 + 1 always equals 2.
|
||||||
|
"""
|
||||||
|
self.assertEqual(1 + 1, 2)
|
@ -0,0 +1 @@
|
|||||||
|
# Create your views here.
|
Loading…
Reference in New Issue
Block a user