-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconftest.py
More file actions
40 lines (28 loc) · 933 Bytes
/
conftest.py
File metadata and controls
40 lines (28 loc) · 933 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
34
35
36
37
38
39
40
# SPDX-License-Identifier: AGPL-3.0-or-later
# Hardbound pytest configuration
import pytest
from .team import Team, TeamConfig
@pytest.fixture
def team():
"""Create a fresh team for testing."""
config = TeamConfig(name="test-team", description="Pytest test team")
return Team(config=config)
@pytest.fixture
def admin_lct():
"""Admin LCT fixture."""
return "web4:soft:admin:12345"
@pytest.fixture
def dev_lct():
"""Developer LCT fixture."""
return "web4:soft:dev:67890"
@pytest.fixture
def reviewer_lct():
"""Reviewer LCT fixture."""
return "web4:soft:reviewer:11111"
@pytest.fixture
def team_with_members(team, admin_lct, dev_lct, reviewer_lct):
"""Team with admin and members set up."""
team.set_admin(admin_lct)
team.add_member(dev_lct, role="developer", atp_budget=50)
team.add_member(reviewer_lct, role="reviewer")
return team, admin_lct, dev_lct, reviewer_lct