2023-12-08 14:52:40 -08:00
|
|
|
import pytest
|
|
|
|
|
2024-01-17 21:15:39 -08:00
|
|
|
from rolltable import tables
|
2022-07-30 14:20:26 -07:00
|
|
|
|
|
|
|
|
2024-01-17 21:15:39 -08:00
|
|
|
@pytest.mark.parametrize('table, expected', [
|
|
|
|
(tables.wild_magic, ['d1000 ', 'A third eye', 'Advantage on perception checks']),
|
|
|
|
(tables.trinkets, ['d1000 ', 'ivory mimic']),
|
|
|
|
(tables.psychadelic_effects, ['d1000', 'Cosmic', 'mind expands', 'it will become so']),
|
2023-12-22 23:22:17 -08:00
|
|
|
])
|
2024-01-17 21:15:39 -08:00
|
|
|
def test_flat(table, expected):
|
|
|
|
table.die = 1000
|
2024-01-16 22:05:06 -08:00
|
|
|
for txt in expected:
|
2024-01-17 21:15:39 -08:00
|
|
|
assert txt in str(table)
|