-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconftest.py
72 lines (53 loc) · 1.36 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
"""
provides fixtures usable by all pytests in the system
See https://docs.pytest.org/en/stable/reference/fixtures.html#conftest-py-sharing-fixtures-across-multiple-files
"""
# -*- coding: utf-8 -*-
import pytest
from maltest.utils import (
get_malcolm_vm_info,
get_artifact_hash_map,
get_malcolm_http_auth,
get_malcolm_url,
get_database_objs,
)
@pytest.fixture
def malcolm_vm_info():
"""
malcolm_vm_info: fixture wrapping .utils.get_malcolm_vm_info
Returns:
see .utils.get_malcolm_vm_info
"""
yield get_malcolm_vm_info()
@pytest.fixture
def artifact_hash_map():
"""
artifact_hash_map: fixture wrapping .utils.get_artifact_hash_map
Returns:
see .utils.get_artifact_hash_map
"""
yield get_artifact_hash_map()
@pytest.fixture
def malcolm_http_auth():
"""
malcolm_http_auth: fixture wrapping .utils.get_malcolm_http_auth
Returns:
see .utils.get_malcolm_http_auth
"""
yield get_malcolm_http_auth()
@pytest.fixture
def database_objs():
"""
database_objs: fixture wrapping .utils.get_database_objs
Returns:
see .utils.get_database_objs
"""
yield get_database_objs()
@pytest.fixture
def malcolm_url():
"""
malcolm_url: fixture wrapping .utils.get_malcolm_url
Returns:
see .utils.get_malcolm_url
"""
yield get_malcolm_url()