Commit df7afc1d authored by Håvard Farestveit's avatar Håvard Farestveit
Browse files

Added build stage to gitlab-ci and fixed test-fail in User/tests

parent ed2f0d2a
Pipeline #114792 canceled with stages
in 4 minutes and 22 seconds
......@@ -5,6 +5,15 @@ stages:
- test
- deploy
build:
image: python:3.8.5-slim
before_script:
- apt-get clean
- pip install -r backend/secfit/requirements.txt
script:
- cd backend/secfit
- python manage.py runserver
test-backend:
stage: test
image: python:3.8.5-slim
......
from django.test import TestCase
from backend.secfit.users.serializers import UserSerializer
from users.serializers import UserSerializer
from django.contrib.auth import get_user_model
from rest_framework import serializers
class UserSerializerTestCase(TestCase):
......
Supports Markdown
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