Skip to content

Commit

Permalink
Added more improvements about QA tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
alfadestroyer committed Jul 26, 2023
1 parent f17aab0 commit eedec9c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
8 changes: 8 additions & 0 deletions backend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -8,7 +8,7 @@
import unittest


class ContentTypesTest(unittest.TestCase):
class CommunityMemberContentTypeTest(unittest.TestCase):
"""The Community Member Content Type Test class
Args:
Expand Down
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit eedec9c

Please sign in to comment.