Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added more improvements from Issue 68 #101

Merged
merged 2 commits into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)