Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.17] PytestUnknownMarkWarning: Unknown pytest.mark.regression #681

Open
picca opened this issue Jan 17, 2024 · 0 comments
Open

[3.17] PytestUnknownMarkWarning: Unknown pytest.mark.regression #681

picca opened this issue Jan 17, 2024 · 0 comments

Comments

@picca
Copy link

picca commented Jan 17, 2024

Hello,

during the Debian packaging, I have this warning message.

Is it normal ?

this does not fail but I am wondering if something is not register correctly in pytest.

sorry if this is just noise.

Frederic

tests/test_regression_images.py:149
  /tmp/autopkgtest.VncXnP/autopkgtest_tmp/tests/test_regression_images.py:149: PytestUnknownMarkWarning: Unknown pytest.mark.regression - 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.regression

tests/test_regression_images.py:196
  /tmp/autopkgtest.VncXnP/autopkgtest_tmp/tests/test_regression_images.py:196: PytestUnknownMarkWarning: Unknown pytest.mark.regression - 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.regression

tests/test_regression_images.py:300
  /tmp/autopkgtest.VncXnP/autopkgtest_tmp/tests/test_regression_images.py:300: PytestUnknownMarkWarning: Unknown pytest.mark.regression - 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.regression

I use this script in order to run the test

set -efu
pythons=$(py3versions -r 2>/dev/null)
cp -r dxtbx/tests dxtbx/conftest.py "$AUTOPKGTEST_TMP"
cd "$AUTOPKGTEST_TMP"
for py in $pythons; do
    echo "Testing dxtbx with $py:"
    $py -m pytest \
        --ignore tests/command_line/test_dlsnxs2cbf.py \
        --ignore tests/format/test_FormatNXmx.py \
        --ignore tests/format/test_FormatNXmxDLS.py \
        --ignore tests/format/test_FormatNXmxDLS16M.py \
        --ignore tests/format/test_FormatNXmxDLS16MI03.py \
        --ignore tests/nexus/test_build_dxtbx_models.py
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant