Skip to content

Commit

Permalink
Add tests for the assignments app (#40)
Browse files Browse the repository at this point in the history
Adds basic tests for every view in `tin/apps/assignments/views.py` (see
#41)

- [X] Basic assignment stuff
- [X] Graders
- [x] Files
- [x] Submissions
- [x] Quizzes
- [x] Scores
- [x] Folders

Co-authored-by: Krishnan Shankar <krishnans2006@gmail.com>
  • Loading branch information
JasonGrace2282 and krishnans2006 authored Jun 29, 2024
1 parent 1715111 commit 3ded115
Show file tree
Hide file tree
Showing 12 changed files with 466 additions and 140 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ jobs:
python-version:
- 3.8

services:
redis:
image: redis
ports:
- 6379:6379
options: --entrypoint redis-server

steps:
- name: Set up repo
uses: actions/checkout@v2
Expand All @@ -35,7 +42,7 @@ jobs:
run: pipenv verify

- name: Install dependencies
run: pipenv install --deploy
run: pipenv install --dev --deploy

- name: Run Tests
run: pipenv run python3 manage.py test
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ django-extensions = "~=3.2"
ipython = "~=8.12.3" # IPython follows NEP 29, so v8.13 does not support Python 3.8
mosspy = "~=1.0"
django-debug-toolbar = "~=4.3"
pytest-django = "~=4.8"

[dev-packages]
pytest-django = "~=4.8"
django-stubs = "*"
pre-commit = "*"
typing-extensions = "*"
Expand Down
178 changes: 85 additions & 93 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3ded115

Please sign in to comment.