Improve code coverage by adding tests
Bug #1414352 reported by
Terri
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Mailman |
In Progress
|
Undecided
|
Unassigned | ||
Postorius |
Confirmed
|
High
|
nilmadhab mondal |
Bug Description
Mailman Core and Postorius have sets of tests, but could use more extensive test coverage. This bug is meant to be a repeatable bug suitable for new contributors (e.g. prospective Google Summer of Code Students). In short: find a piece of Postorius or Mailman Core that isn't yet tested and write a test (or set of tests) for it.
Contributors wishing to work on Mailman Core should look at START.rst and DATABASE.rst for more information about setting up tests.
For Postorius, Florian is working on vcrpy test integration, so new tests can use that format.
Links to documentation and examples much appreciated to update this bug!
Related branches
lp://staging/~flo-fuchs/postorius/testing
- Mailman Coders: Pending requested
-
Diff: 24038 lines (+17385/-5858)82 files modified.bzrignore (+8/-3)
dev-requirements.txt (+4/-0)
setup.py (+20/-16)
src/postorius/__init__.py (+1/-1)
src/postorius/auth/decorators.py (+1/-1)
src/postorius/context_processors.py (+1/-1)
src/postorius/doc/_build/html/.buildinfo (+0/-4)
src/postorius/doc/_build/html/_sources/acknowledgements.txt (+0/-37)
src/postorius/doc/_build/html/_sources/development.txt (+0/-224)
src/postorius/doc/_build/html/_sources/index.txt (+0/-12)
src/postorius/doc/_build/html/_sources/license.txt (+0/-34)
src/postorius/doc/_build/html/_sources/news.txt (+0/-68)
src/postorius/doc/_build/html/_sources/setup.txt (+0/-177)
src/postorius/doc/_build/html/_sources/testing.txt (+0/-6)
src/postorius/doc/_build/html/_sources/using.txt (+0/-32)
src/postorius/doc/_build/html/_static/basic.css (+0/-540)
src/postorius/doc/_build/html/_static/default.css (+0/-256)
src/postorius/doc/_build/html/_static/doctools.js (+0/-247)
src/postorius/doc/_build/html/_static/jquery.js (+0/-154)
src/postorius/doc/_build/html/_static/pygments.css (+0/-62)
src/postorius/doc/_build/html/_static/searchtools.js (+0/-560)
src/postorius/doc/_build/html/_static/sidebar.js (+0/-151)
src/postorius/doc/_build/html/_static/underscore.js (+0/-23)
src/postorius/doc/_build/html/_static/websupport.js (+0/-808)
src/postorius/doc/_build/html/acknowledgements.html (+0/-158)
src/postorius/doc/_build/html/development.html (+0/-362)
src/postorius/doc/_build/html/genindex.html (+0/-123)
src/postorius/doc/_build/html/index.html (+0/-116)
src/postorius/doc/_build/html/license.html (+0/-139)
src/postorius/doc/_build/html/news.html (+0/-186)
src/postorius/doc/_build/html/objects.inv (+0/-10)
src/postorius/doc/_build/html/py-modindex.html (+0/-131)
src/postorius/doc/_build/html/search.html (+0/-105)
src/postorius/doc/_build/html/searchindex.js (+0/-1)
src/postorius/doc/_build/html/setup.html (+0/-252)
src/postorius/doc/_build/html/testing.html (+0/-155)
src/postorius/doc/_build/html/using.html (+0/-402)
src/postorius/doc/development.rst (+81/-152)
src/postorius/doc/index.rst (+8/-2)
src/postorius/doc/news.rst (+2/-2)
src/postorius/doc/settings.py (+1/-1)
src/postorius/doc/using.rst (+0/-32)
src/postorius/fieldset_forms.py (+1/-1)
src/postorius/forms.py (+1/-1)
src/postorius/management/commands/mmclient.py (+1/-1)
src/postorius/models.py (+1/-1)
src/postorius/templatetags/nav_helpers.py (+1/-1)
src/postorius/tests/__init__.py (+20/-8)
src/postorius/tests/fixtures/vcr_cassettes/list_members_access.yaml (+4283/-0)
src/postorius/tests/fixtures/vcr_cassettes/list_members_page.yaml (+1835/-0)
src/postorius/tests/fixtures/vcr_cassettes/test_list_creation.yaml (+1834/-0)
src/postorius/tests/fixtures/vcr_cassettes/test_list_index.yaml (+1375/-0)
src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_moderator.yaml (+1268/-0)
src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_owner.yaml (+1268/-0)
src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_owner_new_owner_added.yaml (+110/-0)
src/postorius/tests/fixtures/vcr_cassettes/test_list_members_new_moderator_added.yaml (+110/-0)
src/postorius/tests/fixtures/vcr_cassettes/test_list_metrics.yaml (+2482/-0)
src/postorius/tests/fixtures/vcr_cassettes/test_list_summary.yaml (+2142/-0)
src/postorius/tests/mailman_api_tests/__init__.py (+1/-32)
src/postorius/tests/mailman_api_tests/test_list_index.py (+28/-8)
src/postorius/tests/mailman_api_tests/test_list_members.py (+106/-28)
src/postorius/tests/mailman_api_tests/test_list_metrics.py (+61/-0)
src/postorius/tests/mailman_api_tests/test_list_new.py (+32/-10)
src/postorius/tests/mailman_api_tests/test_list_summary.py (+28/-7)
src/postorius/tests/test_auth_decorators.py (+1/-1)
src/postorius/tests/test_forms.py (+1/-1)
src/postorius/tests/test_utils.py (+1/-1)
src/postorius/tests/tests.py (+1/-1)
src/postorius/tests/utils.py (+1/-1)
src/postorius/urls.py (+1/-1)
src/postorius/utils.py (+1/-1)
src/postorius/views/__init__.py (+1/-1)
src/postorius/views/api.py (+1/-1)
src/postorius/views/generic.py (+1/-1)
src/postorius/views/list.py (+1/-1)
src/postorius/views/settings.py (+1/-1)
src/postorius/views/user.py (+1/-1)
src/postorius/views/views.py (+1/-1)
testing/__init__.py (+30/-0)
testing/test_mailman.cfg (+25/-0)
testing/test_settings.py (+162/-0)
tox.ini (+39/-0)
lp://staging/~aanand0071/postorius/postorius
Ready for review
for merging
into
lp://staging/postorius
- Terri: Needs Fixing
-
Diff: 72 lines (+58/-0)1 file modifiedsrc/postorius/tests/mailman_api_tests/test_list_delete.py (+58/-0)
tags: | added: easy mailman3 |
description: | updated |
tags: | added: repeatable |
Changed in postorius: | |
assignee: | nobody → nilmadhab mondal (nilmadhab1994) |
Changed in mailman: | |
assignee: | nobody → Yash (yashmehrotra95) |
Changed in mailman: | |
status: | New → In Progress |
Changed in mailman: | |
assignee: | Yash (yashmehrotra95) → nobody |
To post a comment you must log in.
vcrpy is now integrated into Postorius.
I updated the documentation, instructions on how to run the tests can be found in (from Postorius' root directory):
src/postorius/ docs/developmen t.rst