-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding serializers, tests, and minor refactoring
- Loading branch information
1 parent
01a012d
commit 5ce7b60
Showing
4 changed files
with
69 additions
and
15 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 |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
User, | ||
generate_sac_report_id, | ||
) | ||
from audit.models import Audit | ||
from .models.models import STATUS | ||
from .models.viewflow import sac_transition, SingleAuditChecklistFlow | ||
|
||
|
@@ -228,10 +229,10 @@ def test_access_creation_non_unique_emails(self): | |
baker.make(User, email="[email protected]") | ||
baker.make(User, email="[email protected]") | ||
|
||
sac = baker.make(SingleAuditChecklist) | ||
audit = baker.make(Audit) | ||
|
||
access = Access.objects.create( | ||
sac=sac, | ||
audit=audit, | ||
role="editor", | ||
email="[email protected]", | ||
event_user=creator, | ||
|