We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bb6ca5 commit d670b97Copy full SHA for d670b97
chapter6/Makefile
@@ -0,0 +1,2 @@
1
+test:
2
+ python -m pytest --pdb
chapter6/test_debug.py
@@ -0,0 +1,14 @@
+from hello_debug import add
+import pytest
3
+
4
+@pytest.fixture
5
+def myobj():
6
+ class Foo():pass
7
+ return Foo()
8
9
+def test_add():
10
+ assert add(1,2) == 3
11
12
+def test_add_object(myobj):
13
+ assert add(1,myobj) == 3
14
0 commit comments