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: ...@@ -31,7 +31,7 @@ install:
yarn yarn
test: test:
python manage.py run test python manage.py test
coverage: coverage:
coverage run manage.py test coverage run manage.py test
......
...@@ -4,12 +4,15 @@ from core.models import ExamType, Feedback, Student, Submission ...@@ -4,12 +4,15 @@ from core.models import ExamType, Feedback, Student, Submission
class ExamSerializer(serializers.ModelSerializer): class ExamSerializer(serializers.ModelSerializer):
class Meta: class Meta:
model = ExamType 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 FeedbackSerializer(serializers.ModelSerializer):
class Meta: class Meta:
model = Feedback model = Feedback
fields = ('text', 'score') fields = ('text', 'score')
......
...@@ -54,6 +54,7 @@ class FactoryTestCase(TestCase): ...@@ -54,6 +54,7 @@ class FactoryTestCase(TestCase):
def test_can_create_student(self): def test_can_create_student(self):
self.assertIn(self.factory.make_student(), Student.objects.all()) self.assertIn(self.factory.make_student(), Student.objects.all())
class AccountsTestCase(TestCase): class AccountsTestCase(TestCase):
factory = GradyUserFactory() factory = GradyUserFactory()
......
<template> <template>
<div class="row my-2 justify-content-center"> <div class="row my-2 justify-content-center">
<b-table hover :items="submissions" :fields="fields"></b-table> <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> </div>
</template> </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