-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add shortcut button to add exam evaluation (#2050)
Co-authored-by: FSadrieh <[email protected]> Co-authored-by: Johannes Wolf <[email protected]>
- Loading branch information
1 parent
2c5f711
commit 80bd1c8
Showing
10 changed files
with
194 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
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 |
---|---|---|
|
@@ -188,11 +188,12 @@ def create_evaluation_with_responsible_and_editor(): | |
} | ||
|
||
|
||
def make_manager(): | ||
def make_manager(**kwargs): | ||
return baker.make( | ||
UserProfile, | ||
email="[email protected]", | ||
groups=[Group.objects.get(name="Manager")], | ||
**kwargs, | ||
) | ||
|
||
|
||
|
@@ -263,6 +264,7 @@ def assert_no_database_modifications(*args, **kwargs): | |
query["sql"].startswith('INSERT INTO "testing_cache_sessions"') | ||
or query["sql"].startswith('UPDATE "testing_cache_sessions"') | ||
or query["sql"].startswith('DELETE FROM "testing_cache_sessions"') | ||
or query["sql"].startswith('UPDATE "evaluation_userprofile" SET "last_login" = ') | ||
): | ||
# These queries are caused by interacting with the test-app (self.app.get()), since that opens a session. | ||
# That's not what we want to test for here | ||
|
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
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
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