Skip to content

Commit d0d02a5

Browse files
salty-vagrantphilpep
authored andcommitted
Resolve issue #563 configure pytest marks
`pytest` generates spurious warnings which can be easily suppressed by configuring `pytest` correctly. Added relevant configuration
1 parent 1e90793 commit d0d02a5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/conftest.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,3 +257,12 @@ def build_image(build_failed, dockerfile, image, image_path):
257257
thread.join()
258258
if build_failed.is_set():
259259
raise RuntimeError("One or more docker build failed")
260+
261+
config.addinivalue_line(
262+
"markers",
263+
"testinfra_hosts(host_selector): mark test to run on selected hosts"
264+
)
265+
config.addinivalue_line(
266+
"markers",
267+
"destructive: mark test as destructive"
268+
)

0 commit comments

Comments
 (0)