Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
Pipeline #114792 canceled
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment