diff --git a/backend/tests/setup/test_portal_settings.py b/backend/tests/setup/test_portal_settings.py new file mode 100644 index 0000000..593c8a5 --- /dev/null +++ b/backend/tests/setup/test_portal_settings.py @@ -0,0 +1,23 @@ +"""Portal settings tests.""" + +from plone import api + +import pytest + + +class TestPortalSettings: + """Test that Portal configuration is correctly done.""" + + @pytest.mark.parametrize( + "key,expected", + [ + ["plone.site_title", "Intranet do TRE-PR"], + ["plone.email_from_name", "E-mail da Intranet do TRE-PR"], + ["plone.smtp_host", "localhost"], + ["plone.smtp_port", 25], + ], + ) + def test_setting(self, portal, key: str, expected: str): + """Test portal title.""" + value = api.portal.get_registry_record(key) + assert value == expected