Skip to content

Commit b79d066

Browse files
authored
Merge pull request #912 from cderici/register-custom-pytest-marks
#912 #### Description Add a `.pytest.ini` at the top level to register custom pytest marks to prevent pytest from emitting warnings for each mark, such as: ``` tests/unit/test_model.py:371: 24 warnings /home/caner/work/python-libjuju/tests/unit/test_model.py:371: PytestUnknownMarkWarning: Unknown pytest.mark.wait_for_idle - 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.wait_for_idle ``` #### QA Steps No QA needed. Needs to be forward-ported to the main branch. Proactively added the `bundle` mark as it's used in there.
2 parents e9e1ea1 + 2d48750 commit b79d066

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.pytest.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[pytest]
2+
markers =
3+
bundle: tests about bundles
4+
wait_for_idle: tests about wait_for_idle behavior

0 commit comments

Comments
 (0)