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.
Merge pull request #101 from ScrumLATAMComunidad/issue_68
Added more improvements from Issue 68
- Loading branch information
Showing
3 changed files
with
31 additions
and
4 deletions.
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
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
27 changes: 27 additions & 0 deletions
27
backend/src/slc_web/src/slc_web/tests/test_initial_structure.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,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) |