typesafe-monads/tests/fixtures.py

9 lines
210 B
Python
Raw Normal View History

2018-10-12 21:02:17 +00:00
import pytest # type: ignore
from typing import Type
2018-10-13 06:27:39 +00:00
from monads import Maybe, List, Result
2018-10-12 21:02:17 +00:00
2018-10-13 06:27:39 +00:00
@pytest.fixture(scope="module", params=[Maybe, List, Result])
2018-10-12 21:02:17 +00:00
def monad(request) -> Type:
return request.param