diff --git a/talk/examples/parametrization/ex_2.py b/talk/examples/parametrization/ex_2.py index 60f7fba..e882394 100644 --- a/talk/examples/parametrization/ex_2.py +++ b/talk/examples/parametrization/ex_2.py @@ -15,5 +15,4 @@ def database(request): def test_database(database): - print(database) assert False diff --git a/talk/examples/parametrization/ex_3.py b/talk/examples/parametrization/ex_3.py index 5647b55..8559af0 100644 --- a/talk/examples/parametrization/ex_3.py +++ b/talk/examples/parametrization/ex_3.py @@ -20,8 +20,8 @@ def database(request): "ed", ] ) -def username(): - return "josh" +def username(request): + return request.param def test_something(database, username): diff --git a/talk/examples/plugins/ex_1.py b/talk/examples/plugins/ex_1.py index 8bd3b86..310aea4 100644 --- a/talk/examples/plugins/ex_1.py +++ b/talk/examples/plugins/ex_1.py @@ -1,5 +1,4 @@ -# pytest-mock wraps the stdlib unittest.mock module, -# plus some extras! +# pytest-mock wraps the stdlib unittest.mock module class C: