feat: initial commit
This commit is contained in:
commit
e8291f4bef
33 changed files with 10300 additions and 0 deletions
13
tests/unit/test_pair.py
Normal file
13
tests/unit/test_pair.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from secretsanta.domain import Group
|
||||
from tests.unit.conftest import GroupFactory
|
||||
|
||||
|
||||
def test_pair(group):
|
||||
group.pairs = Group.pair(group.participants)
|
||||
|
||||
assert len(group.pairs) == len(
|
||||
group.participants
|
||||
), "Number of pairs does not match participants"
|
||||
|
||||
for k, v in group.pairs.items():
|
||||
assert k != v, "Self-pairings are not allowed"
|
||||
Loading…
Add table
Add a link
Reference in a new issue