Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
opts="",
pty=True,
):
"""
Run pytest. See `invocations.pytest.test` for details.
This is a simple wrapper around the abovementioned task, which makes a
couple minor defaults changes appropriate for this particular test suite,
such as:
- setting ``capture=no`` instead of ``capture=sys``, as we do a very large
amount of subprocess IO testing that even the ``sys`` capture screws up
- setting ``verbose=False`` because we have a large number of tests and
skipping verbose output by default is a ~20% time savings.)
"""
return test_(
c,
verbose=verbose,
color=color,
capture=capture,
module=module,
k=k,
x=x,
opts=opts,
pty=pty,
)
# Better than nothing, since we haven't solved "pretend I have some other
# task's signature" yet...
publish.__doc__ = release.publish.__doc__
my_release = Collection(
"release", release.build, release.status, publish, release.prepare
)
ns = Collection(
blacken,
coverage,
docs,
integration,
my_release,
sites,
test,
travis,
watch_docs,
www,
)
ns.configure(
{
"tests": {
# TODO: have pytest tasks honor these?
"package": "fabric",
"logformat": LOG_FORMAT,
},
"packaging": {
# NOTE: this is currently for identifying the source directory.
# Should it get used for actual releasing, needs changing.
"package": "fabric",
"sign": True,