Repository: pytest-dev/pytest-order (language: python)

Issue:
1.2.0: pytest `PytestUnknownMarkWarning` warnings
Looks like pytest shows some warnings
<details>

```console
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-pytest-order-1.2.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-pytest-order-1.2.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network'
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.8.18, pytest-8.0.0, pluggy-1.3.0
rootdir: /home/tkloczko/rpmbuild/BUILD/pytest-order-1.2.0
configfile: setup.cfg
testpaths: tests
plugins: order-1.2.0, mock-3.12.0, dependency-0.5.1, xdist-3.5.0
collected 130 items

tests/test_class_marks.py .........                                                                                                                                                   [  6%]
tests/test_dependency.py ......................                                                                                                                                       [ 23%]
tests/test_indulgent_ordering.py .                                                                                                                                                    [ 24%]
tests/test_marker_prefix.py .......                                                                                                                                                   [ 30%]
tests/test_misc.py ....                                                                                                                                                               [ 33%]
tests/test_multiple_ordering.py ....                                                                                                                                                  [ 36%]
tests/test_order_group_scope.py ......                                                                                                                                                [ 40%]
tests/test_order_group_scope_dep.py ....                                                                                                                                              [ 43%]
tests/test_order_group_scope_named_dep.py ....                                                                                                                                        [ 46%]
tests/test_order_group_scope_relative.py .....                                                                                                                                        [ 50%]
tests/test_order_scope.py ....                                                                                                                                                        [ 53%]
tests/test_order_scope_level.py .....                                                                                                                                                 [ 57%]
tests/test_ordering.py ...................                                                                                                                                            [ 72%]
tests/test_relative_ordering.py ...................                                                                                                                                   [ 86%]
tests/test_sparse_ordinals.py ................                                                                                                                                        [ 99%]
tests/test_xdist_handling.py .                                                                                                                                                        [100%]

===================================================================================== warnings summary ======================================================================================
tests/test_marker_prefix.py::test_no_ordering
  /tmp/pytest-of-tkloczko/pytest-10/test_no_ordering0/test_no_ordering.py:3: PytestUnknownMarkWarning: Unknown pytest.mark.my3 - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.my3

tests/test_marker_prefix.py::test_no_ordering
  /tmp/pytest-of-tkloczko/pytest-10/test_no_ordering0/test_no_ordering.py:7: PytestUnknownMarkWarning: Unknown pytest.mark.my1 - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.my1

tests/test_marker_prefix.py::test_no_ordering
  /tmp/pytest-of-tkloczko/pytest-10/test_no_ordering0/test_no_ordering.py:11: PytestUnknownMarkWarning: Unknown pytest.mark.my2 - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.my2

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
============================================================================= 130 passed, 3 warnings in 10.64s ==============================================================================
```
</details>



Discussion / hints:
Thanks, missed these.

Fix patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4a0e104..d2e6ebf 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,10 +1,13 @@
 # pytest-order Release Notes
 
+## Infrastructure
+- avoid unknown marker warning in tests (see [#101](https://github.com/pytest-dev/pytest-order/issues/101))
+
 ## [Version 1.2.0](https://pypi.org/project/pytest-order/1.2.0/) (2023-11-18)
 Allows using custom markers for ordering.
 
 ### New features
-* added option `--order-marker-prefix` to allow using custom markers for ordering
+- added option `--order-marker-prefix` to allow using custom markers for ordering
 
 ### Infrastructure
 - added pre-commit hook for linters
diff --git a/README.md b/README.md
index 53d9306..8f3ce31 100644
--- a/README.md
+++ b/README.md
@@ -49,7 +49,7 @@ Features
 - sparse ordering of tests via the
   [sparse-ordering](https://pytest-order.readthedocs.io/en/stable/configuration.html#sparse-ordering) option
 - usage of custom markers for ordering using the
-  [sparse-ordering](https://pytest-order.readthedocs.io/en/stable/configuration.html#order-marker-prefix) option
+  [order-marker-prefix](https://pytest-order.readthedocs.io/en/stable/configuration.html#order-marker-prefix) option
 
 Overview
 --------


Test patch:
diff --git a/tests/test_marker_prefix.py b/tests/test_marker_prefix.py
index a80bdb6..c57b3fb 100644
--- a/tests/test_marker_prefix.py
+++ b/tests/test_marker_prefix.py
@@ -22,14 +22,35 @@ def test_c():
     )
 
 
+@pytest.fixture(scope="module")
+def conftest_file():
+    yield (
+        """
+        def pytest_configure(config):
+            config.addinivalue_line("markers", "my1: used in marker prefix test")
+            config.addinivalue_line("markers", "my2: used in marker prefix test")
+            config.addinivalue_line("markers", "my3: used in marker prefix test")
+        """
+    )
+
+
 @pytest.fixture
-def marker_test(test_path, marker_test_file):
+def marker_test(test_path, marker_test_file, conftest_file):
+    test_path.makepyfile(conftest=conftest_file)
     test_path.makepyfile(test_marker=marker_test_file)
     yield test_path
 
 
-def test_no_ordering(marker_test_file, item_names_for):
-    assert item_names_for(marker_test_file) == ["test_a", "test_b", "test_c"]
+def test_no_ordering(marker_test):
+    result = marker_test.runpytest("-v")
+    result.assert_outcomes(passed=3, skipped=0)
+    result.stdout.fnmatch_lines(
+        [
+            "test_marker.py::test_a PASSED",
+            "test_marker.py::test_b PASSED",
+            "test_marker.py::test_c PASSED",
+        ]
+    )
 
 
 def test_order_with_marker_prefix(marker_test):
@@ -110,7 +131,8 @@ def test_c():
     )
 
 
-def test_mix_marker_prefix_with_order_marks(test_path):
+def test_mix_marker_prefix_with_order_marks(test_path, conftest_file):
+    test_path.makepyfile(conftest=conftest_file)
     test_path.makepyfile(
         test_marker=(
             """