We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4deacc5 commit 5ceed37Copy full SHA for 5ceed37
test_method_call.py
@@ -5,7 +5,10 @@
5
@pytest.mark.xfail(strict=True)
6
def test_name_with_patch_context_manager_failure():
7
"""We are patching the method within the module.
8
- But this isn't exactly what's used by Person"""
+ But this isn't exactly what's used by Person.
9
+ Since person.py had `from data_source import get_name`
10
+ if person.py had `import data_source` instead, this test would pass.
11
+ """
12
the_person = Person()
13
with patch("data_source.get_name", return_value="Bob"):
14
name = the_person.name()
0 commit comments