Skip to content

Commit

Permalink
Added the CRUD passed tests for QA #66
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanLP06 committed Jul 24, 2023
1 parent d82e2ce commit 1c9c8d8
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions backend/src/slc_web/src/slc_web/tests/test_ct_community_member.py
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)

0 comments on commit 1c9c8d8

Please sign in to comment.