typesafe-monads/tests/fixtures.py
Correl Roush efa13e6f08 Remove Future from generic monad testing
The Future tests already re-implement all of the normal tests while
also handling their asynchronous nature. Including them in the generic
tests leave futures unawaited.
2019-01-08 15:40:00 -05:00

8 lines
210 B
Python

import pytest # type: ignore
from typing import Type
from monads import Maybe, List, Result
@pytest.fixture(scope="module", params=[Maybe, List, Result])
def monad(request) -> Type:
return request.param