Changes
Page history
document donate-neo tests (
tpo/web/donate-neo#79
)
authored
Sep 13, 2024
by
anarcat
Show whitespace changes
Inline
Side-by-side
service/donate.md
View page @
d14f32fd
...
...
@@ -747,14 +747,23 @@ See [tpo/web/donate-neo#75](https://gitlab.torproject.org/tpo/web/donate-neo/-/i
## Tests
<!-- how the service can be tested, for example after major changes -->
<!-- like IP address changes or upgrades. describe CI, test suites, linting -->
TODO: how do we run the test suite or test that things are still working after an upgrade? (@stephen) also cross-ref with @mattlav's checklist
To test donations after upgrades or to confirm everything works, see
the
[
Testing the donation site
](
#testing-the-donation-site
)
section.
The site's test suite is ran in GitLab CI when a merge request is
sent, and a full review app is setup to test the site before the
branch is merged. Then staging must be tested as well.
Tests can be ran locally:
coverage run manage.py test
This assumes a local development setup with Poetry, see the project's
README file for details.
Code is linted with
`flake8`
,
`mypy`
and test coverage with
[
coverage
](
https://pypi.org/project/coverage/
)
.
## Logs
The logs may be accessed using the
`podman logs <container>`
command, as the
...
...
...
...