These hypothesis are only used to generate random hashes (and checking
they are not already used).
A single random hash is sufficient and faster.
Details
Details
- Reviewers
anlambert - Group Reviewers
Reviewers - Commits
- rDWAPPS49baaf269989: Stop using hypothesis for tests that don't need it.
Diff Detail
Diff Detail
- Repository
- rDWAPPS Web applications
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
Build is green
See https://jenkins.softwareheritage.org/job/DWAPPS/job/tox/461/ for more details.
swh/web/tests/data.py | ||
---|---|---|
65–83 | Can we turn these into pytest fixtures ? I would prefer to keep test inputs as parameters. |
swh/web/tests/data.py | ||
---|---|---|
65–83 | No, because I need to use more than one random_sha1 in a test, and pytest fixtures don't work for TestCase methods. |
swh/web/tests/data.py | ||
---|---|---|
65–83 | Oh right, I forgot that. Let's land this then. |
Comment Actions
Build is green
See https://jenkins.softwareheritage.org/job/DWAPPS/job/tox/494/ for more details.