File: conftest.py

package info (click to toggle)
shadow 1%3A4.19.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 67,276 kB
  • sloc: sh: 44,701; ansic: 34,184; xml: 12,350; exp: 3,691; makefile: 1,656; python: 1,409; perl: 120; sed: 16
file content (18 lines) | stat: -rw-r--r-- 399 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Configuration file for multihost tests.

from __future__ import annotations

from pytest_mh import MultihostPlugin

from framework.config import ShadowMultihostConfig

# Load additional plugins
pytest_plugins = (
    "pytest_mh",
    "pytest_ticket",
)


def pytest_plugin_registered(plugin) -> None:
    if isinstance(plugin, MultihostPlugin):
        plugin.config_class = ShadowMultihostConfig