mirror of
https://github.com/correl/typesafe-monads.git
synced 2024-11-14 11:09:36 +00:00
efa13e6f08
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.
8 lines
210 B
Python
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
|