Fix Context initialization in tests

This commit is contained in:
Tulir Asokan
2019-03-16 17:22:16 +02:00
parent 7c46bf4b9e
commit e16182ee6a
2 changed files with 23 additions and 50 deletions
+4 -7
View File
@@ -12,19 +12,16 @@ def boolean(request: FixtureRequest) -> bool:
@pytest.fixture
def boolean1(boolean: bool) -> Tuple[bool]:
return (boolean,)
return boolean,
@pytest.fixture(params=[True, False])
def boolean2(request: FixtureRequest, boolean: bool) -> Tuple[bool, bool]:
return (boolean, request.param)
return boolean, request.param
@pytest.fixture(params=[True, False])
def boolean3(
request: FixtureRequest, boolean2: Tuple[bool, bool]
) -> Tuple[bool, bool, bool]:
return (boolean2[0], boolean2[1], request.param)
def boolean3(request: FixtureRequest, boolean2: Tuple[bool, bool]) -> Tuple[bool, bool, bool]:
return boolean2[0], boolean2[1], request.param
# …