-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add email field to the organization serializer
Co-authored-by: Kelvin Muchiri <[email protected]>
- Loading branch information
1 parent
d7e3254
commit 36a23ae
Showing
2 changed files
with
4 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -214,8 +214,10 @@ def test_orgs_get_anon(self): | |
self.assertTrue(isinstance(user["user"], text)) | ||
|
||
def test_orgs_create(self): | ||
self._org_create() | ||
org_email = "[email protected]" | ||
self._org_create(org_data = {"email": org_email}) | ||
self.assertTrue(self.organization.user.is_active) | ||
self.assertEqual(self.organization.user.email, org_email) | ||
|
||
def test_orgs_create_without_name(self): | ||
data = { | ||
|
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