From 1c9c8d868c188bf4411cda70413a430b84a508c0 Mon Sep 17 00:00:00 2001 From: Juan Lopez Date: Mon, 24 Jul 2023 13:56:39 -0600 Subject: [PATCH] Added the CRUD passed tests for QA #66 --- .../slc_web/tests/test_ct_community_member.py | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 backend/src/slc_web/src/slc_web/tests/test_ct_community_member.py diff --git a/backend/src/slc_web/src/slc_web/tests/test_ct_community_member.py b/backend/src/slc_web/src/slc_web/tests/test_ct_community_member.py new file mode 100644 index 0000000..e16470f --- /dev/null +++ b/backend/src/slc_web/src/slc_web/tests/test_ct_community_member.py @@ -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)