From eedec9c1d4ccd8bb2db61932c3fda9b2144fd61d Mon Sep 17 00:00:00 2001 From: Manuel Matos Date: Wed, 26 Jul 2023 00:43:30 -0400 Subject: [PATCH] Added more improvements about QA tasks --- backend/Makefile | 8 ++++++++ .../slc_web/src/slc_web/tests/test_ct_community_member.py | 4 ++-- .../src/slc_web/tests/test_ct_community_sponsor.py | 6 ++---- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/backend/Makefile b/backend/Makefile index e7a9065..9df7189 100644 --- a/backend/Makefile +++ b/backend/Makefile @@ -149,6 +149,14 @@ test: ## run tests test_quiet: ## run tests removing deprecation warnings PYTHONWARNINGS=ignore ./bin/zope-testrunner --auto-color --auto-progress --test-path src/slc_web/src/ +.PHONY: coverage +coverage: ## run tests coverage reports + ./bin/zope-testrunner --coverage slc_web --auto-color --auto-progress --test-path src/slc_web/src/ + +.PHONY: coverage_quiet +coverage_quiet: ## run tests coverage reports removing deprecation warnings + PYTHONWARNINGS=ignore ./bin/zope-testrunner --coverage slc_web --auto-color --auto-progress --test-path src/slc_web/src/ + .PHONY: create-site create-site: instance/etc/zope.ini ## Create a new site from scratch PYTHONWARNINGS=ignore ./bin/zconsole run instance/etc/zope.conf ./scripts/create_site.py diff --git a/backend/src/slc_web/src/slc_web/tests/test_ct_community_member.py b/backend/src/slc_web/src/slc_web/tests/test_ct_community_member.py index e16470f..115110a 100644 --- a/backend/src/slc_web/src/slc_web/tests/test_ct_community_member.py +++ b/backend/src/slc_web/src/slc_web/tests/test_ct_community_member.py @@ -1,4 +1,4 @@ -"""Content Types tests for this package.""" +"""Community Member Content Type tests for this package.""" from plone.app.testing import setRoles from plone.app.testing import TEST_USER_ID from plone.dexterity.interfaces import IDexterityFTI @@ -8,7 +8,7 @@ import unittest -class ContentTypesTest(unittest.TestCase): +class CommunityMemberContentTypeTest(unittest.TestCase): """The Community Member Content Type Test class Args: diff --git a/backend/src/slc_web/src/slc_web/tests/test_ct_community_sponsor.py b/backend/src/slc_web/src/slc_web/tests/test_ct_community_sponsor.py index e026de9..fb8e2e5 100644 --- a/backend/src/slc_web/src/slc_web/tests/test_ct_community_sponsor.py +++ b/backend/src/slc_web/src/slc_web/tests/test_ct_community_sponsor.py @@ -1,18 +1,16 @@ -"""Content Types tests for this package.""" +"""Community Sponsor Content Type tests for this package.""" from plone.app.testing import setRoles from plone.app.testing import TEST_USER_ID from plone.dexterity.interfaces import IDexterityFTI - from slc_web import ADD_SPONSOR_ROLES from slc_web import MANAGE_SPONSOR_ROLES from slc_web.testing import SLC_WEB_INTEGRATION_TESTING - from zope.component import queryUtility import unittest -class ContentTypesTest(unittest.TestCase): +class CommunitySponsorContentTypeTest(unittest.TestCase): """The Community Sponsor Content Type Test class Args: