mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-22 13:34:07 +03:00
aa8572048b
Reproducing what the custom unittest TestCase does. Convert test_about as a demo Signed-off-by: Cole Robinson <crobinso@redhat.com>
18 lines
371 B
Python
18 lines
371 B
Python
# This work is licensed under the GNU GPLv2 or later.
|
|
# See the COPYING file in the top-level directory.
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.fixture
|
|
def app():
|
|
"""
|
|
Custom pytest fixture to a VMMDogtailApp instance to the testcase
|
|
"""
|
|
from .lib.app import VMMDogtailApp
|
|
testapp = VMMDogtailApp()
|
|
try:
|
|
yield testapp
|
|
finally:
|
|
testapp.stop()
|