-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add attempt creation test util (#1241)
* fix: Add attempt creation test util * Add test files to codecov ignore list * Fix codecov.yml
- Loading branch information
1 parent
60fe5d6
commit 60573ea
Showing
3 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from game.models import Attempt | ||
|
||
|
||
def create_attempt(student, level, score): | ||
attempt = Attempt(level=level, student=student, score=score, is_best_attempt=True) | ||
attempt.save() | ||
|
||
return attempt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters