typesafe-monads/tests/fixtures.py

9 lines
210 B
Python
Raw Normal View History

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