forked from SatelliteQE/robottelo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conftest.py
82 lines (77 loc) · 2.97 KB
/
conftest.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
"""Global Configurations for py.test runner"""
import pytest
pytest_plugins = [
# Plugins
'pytest_plugins.auto_vault',
'pytest_plugins.disable_rp_params',
'pytest_plugins.external_logging',
'pytest_plugins.fixture_markers',
'pytest_plugins.infra_dependent_markers',
'pytest_plugins.issue_handlers',
'pytest_plugins.logging_hooks',
'pytest_plugins.manual_skipped',
'pytest_plugins.marker_deselection',
'pytest_plugins.markers',
'pytest_plugins.metadata_markers',
'pytest_plugins.settings_skip',
'pytest_plugins.rerun_rp.rerun_rp',
'pytest_plugins.fspath_plugins',
'pytest_plugins.factory_collection',
'pytest_plugins.requirements.update_requirements',
'pytest_plugins.sanity_plugin',
# Fixtures
'pytest_fixtures.core.broker',
'pytest_fixtures.core.sat_cap_factory',
'pytest_fixtures.core.contenthosts',
'pytest_fixtures.core.reporting',
'pytest_fixtures.core.sys',
'pytest_fixtures.core.upgrade',
'pytest_fixtures.core.xdist',
'pytest_fixtures.core.ui',
# Component Fixtures
'pytest_fixtures.component.acs',
'pytest_fixtures.component.activationkey',
'pytest_fixtures.component.ansible',
'pytest_fixtures.component.architecture',
'pytest_fixtures.component.computeprofile',
'pytest_fixtures.component.contentview',
'pytest_fixtures.component.domain',
'pytest_fixtures.component.discovery',
'pytest_fixtures.component.host',
'pytest_fixtures.component.hostgroup',
'pytest_fixtures.component.http_proxy',
'pytest_fixtures.component.katello_certs_check',
'pytest_fixtures.component.lce',
'pytest_fixtures.component.maintain',
'pytest_fixtures.component.os',
'pytest_fixtures.component.oscap',
'pytest_fixtures.component.partition_table',
'pytest_fixtures.component.provision_azure',
'pytest_fixtures.component.provision_gce',
'pytest_fixtures.component.provision_libvirt',
'pytest_fixtures.component.provision_pxe',
'pytest_fixtures.component.provision_vmware',
'pytest_fixtures.component.provisioning_template',
'pytest_fixtures.component.puppet',
'pytest_fixtures.component.repository',
'pytest_fixtures.component.rh_cloud',
'pytest_fixtures.component.satellite_auth',
'pytest_fixtures.component.settings',
'pytest_fixtures.component.smartproxy',
'pytest_fixtures.component.subnet',
'pytest_fixtures.component.subscription',
'pytest_fixtures.component.taxonomy',
'pytest_fixtures.component.templatesync',
'pytest_fixtures.component.user',
'pytest_fixtures.component.user_role',
# upgrade
'pytest_plugins.upgrade.scenario_workers',
]
@pytest.hookimpl(tryfirst=True, hookwrapper=True)
def pytest_runtest_makereport(item, call):
# execute all other hooks to obtain the report object
outcome = yield
rep = outcome.get_result()
# set a report attribute for each phase of a call, which can
# be "setup", "call", "teardown"
setattr(item, "rep_" + rep.when, rep)