Commit 4556995d authored by Michael Lundquist's avatar Michael Lundquist
Browse files

Attempting a simple test case before I start making API calls in the test cases.

parent 3671af83
Pipeline #4813 failed with stage
in 1 minute and 9 seconds
...@@ -31,9 +31,9 @@ before_script: ...@@ -31,9 +31,9 @@ before_script:
- echo "from django.contrib.auth import get_user_model; User = - echo "from django.contrib.auth import get_user_model; User =
get_user_model(); User.objects.create_superuser('root', get_user_model(); User.objects.create_superuser('root',
'root@srct.gmu.edu', 'root') " | python manage.py shell 'root@srct.gmu.edu', 'root') " | python manage.py shell
- python3 manage.py loaddata --format json categoriesFixture locationFixture openTimeFixture scheduleFixture settingsFixture
whats-open-py3.7: whats-open-py3.7:
image: library/python:3.7 image: library/python:3.7
type: test type: test
script: script:
- echo "Done 😄" - python3 manage.py test --noinput api/tests/
from rest_framework.test import APIRequestFactory, APITestCase
class ScheduleTests(APITestCase):
def test_call(self):
self.assertTrue(true)
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment