typesafe-monads/tests/fixtures.py

9 lines
218 B
Python
Raw Normal View History

2018-10-12 21:02:17 +00:00
import pytest # type: ignore
from typing import Type
2018-12-13 03:50:27 +00:00
from monads import Maybe, List, Result, Future
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