Skip to content

Commit bf01a50

Browse files
committed
doc, test: replace py.test references with pytest
As of `pytest` 7.2.0, `py` is no longer in our dependency graph, so we should not refer to this older and sorta-deprecated library, especially when invoking `pytest`.
1 parent 71ab85d commit bf01a50

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@ lint-type:
1212

1313
.PHONY: test test_norecord test_novcr vcr_rerecord
1414
test:
15-
coverage run -m py.test -v .
15+
coverage run -m pytest -v .
1616

1717
test_norecord:
1818
# error if VCR recording for a web request is missing (useful on CI)
19-
coverage run -m py.test -v . --vcr-record=none
19+
coverage run -m pytest -v . --vcr-record=none
2020

2121
test_novcr:
2222
# disable VCR completely; useful to check if recordings are outdated
23-
coverage run -m py.test -v . --disable-vcr
23+
coverage run -m pytest -v . --disable-vcr
2424

2525
vcr_rerecord:
2626
# clear VCR cassettes and run tests to record fresh ones
2727
rm -rf ./test/vcr/*
28-
coverage run -m py.test -v . --vcr-record=all
28+
coverage run -m pytest -v . --vcr-record=all
2929

3030
.PHONY: coverage_report coverage_html coverages
3131
coverage_report:

docs/source/plugin/test.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Assuming your test files are in the ``test`` folder in your project directory::
3333

3434
You can run your test suite with::
3535

36-
py.test -v test/
36+
pytest -v test/
3737

3838
.. __: https://docs.pytest.org/en/stable/getting-started.html
3939

sopel/tests/mocks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class MockIRCServer:
108108
``blocking`` arguments to the instance methods below.
109109
110110
The :class:`~sopel.tests.factories.IRCFactory` factory can be used to
111-
create such mock object, either directly or by using ``py.test`` and the
111+
create such mock object, either directly or by using ``pytest`` and the
112112
:func:`~sopel.tests.pytest_plugin.ircfactory` fixture.
113113
114114
.. versionadded:: 7.1
@@ -361,7 +361,7 @@ class MockUser:
361361
:param str host: user's host
362362
363363
The :class:`~sopel.tests.factories.UserFactory` factory can be used to
364-
create such mock object, either directly or by using ``py.test`` and the
364+
create such mock object, either directly or by using ``pytest`` and the
365365
:func:`~sopel.tests.pytest_plugin.userfactory` fixture.
366366
"""
367367
def __init__(self, nick=None, user=None, host=None):

0 commit comments

Comments
 (0)