Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create home page for autograder #35

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 34 additions & 2 deletions autograder_django_backend/autograder/tests/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
fake = Faker()

# Create a student


def student_factory(**kwargs):
if "name" not in kwargs:
kwargs["name"] = fake.name()
Expand All @@ -19,3 +17,37 @@ def student_factory(**kwargs):
student = Student.objects.create(**kwargs)

return student

#Create a professor
def professor_factory(**kwargs):
if "name" not in kwargs:
kwargs["name"] = fake.name()
if "email" not in kwargs:
kwargs["email"] = fake.email()

# Check that there are only 2 arguments in kwargs
assert len(kwargs) == 2

professor = Professor.objects.create(**kwargs)

return professor

#Create a course
def course_factory(**kwargs):
if "course_id" not in kwargs:
kwargs["course_id"] = fake.course_id()
if "name" not in kwargs:
kwargs["name"] = fake.name()
if "description" not in kwargs:
kwargs["description"] = fake.description()
if "section" not in kwargs:
kwargs["section"] = fake.section()
if "professor" not in kwargs:
kwargs["professor"] = professor_factory();

# Check that there are only 5 arguments in kwargs
assert len(kwargs) == 5

course = Course.objects.create(**kwargs)

return course
103 changes: 0 additions & 103 deletions autograder_svelte_frontend/src/lib/Counter.svelte

This file was deleted.

84 changes: 0 additions & 84 deletions autograder_svelte_frontend/src/lib/form.ts

This file was deleted.

124 changes: 0 additions & 124 deletions autograder_svelte_frontend/src/lib/header/Header.svelte

This file was deleted.

This file was deleted.

Loading