-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconftest.py
More file actions
33 lines (24 loc) · 752 Bytes
/
conftest.py
File metadata and controls
33 lines (24 loc) · 752 Bytes
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
import pytest
from tests.e2e.helper import (
async_create_fixture_resource_and_delete,
create_fixture_resource_and_delete,
)
@pytest.fixture
def queue_data(short_uuid):
return {
"name": f"E2E Queue {short_uuid}",
"description": "E2E Created Helpdesk Queue",
}
@pytest.fixture
def invalid_queue_id():
return "HQU-0000-0000"
@pytest.fixture
def created_queue(mpt_ops, queue_data):
with create_fixture_resource_and_delete(mpt_ops.helpdesk.queues, queue_data) as queue:
yield queue
@pytest.fixture
async def async_created_queue(async_mpt_ops, queue_data):
async with async_create_fixture_resource_and_delete(
async_mpt_ops.helpdesk.queues, queue_data
) as queue:
yield queue