Skip to content

Commit a82d6b8

Browse files
committed
chore(test): move pytest cli args definition
The `--broker-url` PyTest CLI argument is used by the examples to determine whether a Broker is automatically launched, or whether an existing broker is used. All PyTest CLI arguments _must_ be defined in the root directory of the project. As a result, the previous location where these arguments were defined meant that the examples could only be launched of PyTest was specifically pointed at the `examples/` directory. This commit moves the definition to the root directory, thereby unifying the `examples/` with the remaining tests. Signed-off-by: JP-Ellis <josh@jpellis.me>
1 parent 28ed51e commit a82d6b8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

conftest.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
"""
2-
Global Pytest configuration.
2+
Global PyTest configuration.
33
4-
This file is used to define global Pytest configuration. In this case, we use it
5-
to define additional command line options to customise the examples.
4+
This file is automatically loaded by PyTest before running any tests and is used
5+
to define global fixtures and command line options. Command line options can
6+
only be defined in this file.
67
"""
78

89
import pytest

0 commit comments

Comments
 (0)