forked from macagua/slc-sitioweb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the CRUD passed tests for QA #66
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
backend/src/slc_web/src/slc_web/tests/test_ct_community_member.py
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,28 @@ | ||
"""Content Types tests for this package.""" | ||
from plone.app.testing import setRoles | ||
from plone.app.testing import TEST_USER_ID | ||
from plone.dexterity.interfaces import IDexterityFTI | ||
from slc_web.testing import SLC_WEB_INTEGRATION_TESTING | ||
from zope.component import queryUtility | ||
|
||
import unittest | ||
|
||
|
||
class ContentTypesTest(unittest.TestCase): | ||
"""The Community Member Content Type Test class | ||
Args: | ||
unittest (class): unittest TestCase | ||
""" | ||
|
||
layer = SLC_WEB_INTEGRATION_TESTING | ||
|
||
def setUp(self): | ||
"""Custom shared utility setup for tests.""" | ||
self.portal = self.layer["portal"] | ||
setRoles(self.portal, TEST_USER_ID, ["Manager"]) | ||
|
||
def test_fti_community_member(self): | ||
fti = queryUtility(IDexterityFTI, name="CommunityMember") | ||
self.assertTrue(fti) | ||
# self.assertNotEqual(None, fti) |