Skip to content

Commit

Permalink
Added unit test for initial structure #68
Browse files Browse the repository at this point in the history
  • Loading branch information
alfadestroyer committed Jul 26, 2023
1 parent 38dcb73 commit 81764bb
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions backend/src/slc_web/src/slc_web/tests/test_initial_structure.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
"""This is an integration "unit" test for Site Structure."""
from slc_web.testing import SLC_WEB_INTEGRATION_TESTING

import unittest


class SiteStructureTest(unittest.TestCase):
"""The class that tests the Plone Site Structure was created.
Args:
unittest (class): unittest TestCase
"""

layer = SLC_WEB_INTEGRATION_TESTING

def setUp(self):
"""Custom shared utility setup for tests."""
self.portal = self.layer["portal"]
self.existing = self.portal.objectIds()

def test_default_content_is_removed(self):
"""This method test that the default content is removed."""
existing = self.portal.objectIds()
self.assertTrue("front-page" not in existing)
self.assertTrue("events" not in existing)
self.assertTrue("news" not in existing)
self.assertTrue("Members" not in existing)

0 comments on commit 81764bb

Please sign in to comment.