Skip to content

Commit

Permalink
Merge pull request #101 from ScrumLATAMComunidad/issue_68
Browse files Browse the repository at this point in the history
Added more improvements from Issue 68
  • Loading branch information
macagua committed Jul 26, 2023
2 parents c98d931 + 81764bb commit ddc7107
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/src/slc_web/src/slc_web/setuphandlers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@implementer(INonInstallable)
class HiddenProfiles(object):
def getNonInstallableProfiles(self):
"""Hide uninstall profile from site-creation and quickinstaller."""
"""Hide uninstall profile from site-creation and quick-installer."""
return [
"slc_web:uninstall",
]
Expand Down
6 changes: 3 additions & 3 deletions backend/src/slc_web/src/slc_web/setuphandlers/contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"_parent": "",
"type": "Document",
"id": "images",
"title": "Imagenes",
"description": "Banco de imagenes.",
"title": "Imágenes",
"description": "Banco de imágenes.",
"_transitions": [
"publish"
],
Expand Down Expand Up @@ -38,7 +38,7 @@
"type": "Document",
"id": "actividades",
"title": "Actividades",
"description": "Beneficios que tienen los miembros de la comunidad en toda latnoamerica.",
"description": "Beneficios que tienen los miembros de la comunidad en toda Latinoamérica.",
"blocks": {},
"blocks_layout": {},
"_transitions": [
Expand Down
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 ddc7107

Please sign in to comment.