Skip to content

Commit

Permalink
FIX: Removes warnings about unknown pytest marker (#715)
Browse files Browse the repository at this point in the history
This is a low prio PR but it solves an annoyance.

Right now, when running tests, the output is spammed by messages like:

> PytestUnknownMarkWarning: Unknown pytest.mark.multi_gpu_tests - is
this a typo? ...

This makes it more difficult to see the actually relevant information.
This PR fixes this by registering the two pytest markers we use, thus
removing the warnings.
  • Loading branch information
BenjaminBossan authored Jul 17, 2023
1 parent e90dcc4 commit a1953ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@ doctest_optionflags = [

[tool.pytest.ini_options]
addopts = "--cov=src/peft --cov-report=term-missing"
markers = [
"single_gpu_tests: tests that run on a single GPU",
"multi_gpu_tests: tests that run on multiple GPUs",
]

0 comments on commit a1953ba

Please sign in to comment.