Skip to content
Snippets Groups Projects
Commit a7403bc5 authored by Jan Maximilian Michal's avatar Jan Maximilian Michal
Browse files

Makefile fix and minor formatting issues (PEP8, and line length)

parent 673686af
No related branches found
No related tags found
2 merge requests!15Refactor,!13Student page
Pipeline #
......@@ -31,7 +31,7 @@ install:
yarn
test:
python manage.py run test
python manage.py test
coverage:
coverage run manage.py test
......
......@@ -4,12 +4,15 @@ from core.models import ExamType, Feedback, Student, Submission
class ExamSerializer(serializers.ModelSerializer):
class Meta:
model = ExamType
fields = ('module_reference', 'total_score', 'pass_score', 'pass_only',)
fields = ('module_reference', 'total_score',
'pass_score', 'pass_only',)
class FeedbackSerializer(serializers.ModelSerializer):
class Meta:
model = Feedback
fields = ('text', 'score')
......
......@@ -54,6 +54,7 @@ class FactoryTestCase(TestCase):
def test_can_create_student(self):
self.assertIn(self.factory.make_student(), Student.objects.all())
class AccountsTestCase(TestCase):
factory = GradyUserFactory()
......
<template>
<div class="row my-2 justify-content-center">
<b-table hover :items="submissions" :fields="fields"></b-table>
<div class="alert alert-info">You reached <b>{{ sumScore }}</b> of <b>{{ sumFullScore }}</b> possible points( {{ pointRatio }}% ).</div>
<div class="alert alert-info">
You reached <b>{{ sumScore }}</b> of <b>{{ sumFullScore }}</b> possible points( {{ pointRatio }}% ).
</div>
</div>
</template>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment