http://hg.code.sf.net:8000/p/roundup/code/atom-log/tip/test/test_hypothesis.py Mercurial Repository: p/roundup/code: test/test_hypothesis.py history 2024-04-20T17:14:08-04:00 fix: missing crypt in python with hypothesis testing. http://hg.code.sf.net:8000/p/roundup/code/#changeset-2c6d6681947565181f4d2edddd560c66702800ea John Rouillard rouilj@ieee.org 2024-04-20T17:14:08-04:00 2024-04-20T17:14:08-04:00
changeset 2c6d66819475
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix: missing crypt in python with hypothesis testing.
files
test: update to handle crypt not available http://hg.code.sf.net:8000/p/roundup/code/#changeset-9ff94a2e8c8297adc620cb3280539e2ae5a5d281 John Rouillard rouilj@ieee.org 2024-04-20T16:41:08-04:00 2024-04-20T16:41:08-04:00
changeset 9ff94a2e8c82
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description test: update to handle crypt not available

crypt is not supported in 3.13 and newer. Update test using
crypt to work.
files
test: set encodePassword test count to normal. Not 100x normal. http://hg.code.sf.net:8000/p/roundup/code/#changeset-ce740d9a7d8d2b8f39ce2fd8f0eaa0a1003967e9 John Rouillard rouilj@ieee.org 2024-03-26T15:36:31-04:00 2024-03-26T15:36:31-04:00
changeset ce740d9a7d8d
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description test: set encodePassword test count to normal. Not 100x normal.

[skip travis] hypothesis testing not done on python 2.
files
test: fix overly broad range. http://hg.code.sf.net:8000/p/roundup/code/#changeset-6aea9dad6d4a1ef4f3debd2fb2d69083a971670c John Rouillard rouilj@ieee.org 2024-03-26T15:08:44-04:00 2024-03-26T15:08:44-04:00
changeset 6aea9dad6d4a
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description test: fix overly broad range.
files
test: add basic tests using hypothesis http://hg.code.sf.net:8000/p/roundup/code/#changeset-604da0650797a333ed88152e3bf5625723690e87 John Rouillard rouilj@ieee.org 2024-03-24T13:49:52-04:00 2024-03-24T13:49:52-04:00
changeset 604da0650797
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description test: add basic tests using hypothesis

It is segregated to its own file.

I am skipping the entire file using importorskip().

Mixing hypothesis tests with non-hypothesis tests is tricky.

Hypothesis uses decorators before test commands:

@given(text())
@settings(max_examples=_max_examples)

Pytest runs the decorators and the arguments as part of scanning the
file for tests. This means the decorator (given, settings ...) and the
strategies inside the decorators (e.g. text()) have to be defined
using a lambda or something. Only aborting at the top of the file
using importorskip prevents having to define all the symbols that
would be imported from hypothesis.
files