aboutsummaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorErik Skultety <eskultet@redhat.com>2023-03-22 17:21:46 +0100
committerErik Skultety <eskultet@redhat.com>2023-03-22 17:28:39 +0100
commit808bfca1bdffc93c96482546ebb52ae75e8e2617 (patch)
tree51fcc1c085e7c658716b1b7a8d79ef3741b5920c /setup.py
parentb1562114b86d13cad9468248dbb27a3138a88871 (diff)
downloadlibvirt-ci-808bfca1bdffc93c96482546ebb52ae75e8e2617.zip
libvirt-ci-808bfca1bdffc93c96482546ebb52ae75e8e2617.tar.gz
libvirt-ci-808bfca1bdffc93c96482546ebb52ae75e8e2617.tar.bz2
tests: Introduce class and module scoped equivalents for monkeypatch
If one tries to combine a class-scoped or a module-scoped fixture that happens to depend on monkeypatch, this is what they'll get: "You tried to access the function scoped fixture monkeypatch with a module scoped request object" Sometimes one wants to monkeypatch to carry over the override to further test functions and that's where fixture scopes come in. To remediate the issue, introduce our own global fixture helpers with conforming to different scopes. At the same time, apply the improvement to test_containers.py. Signed-off-by: Erik Skultety <eskultet@redhat.com>
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions