32. USING THE MOCK IN A TEST
@pytest.mark.usefixtures(‘mock_vuforia’)
def test_match_wine():
add_wine(image=blue_nun, name=“Blue Nun”)
add_wine(image=cristal, name=“Cristal”)
result = get_match(image=blue_nun)
assert result.name == ”Blue Nun”
40. VERIFIED FAKE
[A verified fake] is verified against (a
subset of) the same test suite as the
real implementation, as well as
providing an introspection API that
allows test cases to verify that it did
the right thing. — Glyph
41. VERIFIED FAKE
[A verified fake] is verified against (a
subset of) the same test suite as the
real implementation, as well as
providing an introspection API that
allows test cases to verify that it did
the right thing. — Glyph
42. VERIFIED FAKE
[A verified fake] is verified against (a
subset of) the same test suite as the
real implementation, as well as
providing an introspection API that
allows test cases to verify that it did
the right thing. — Glyph
43. VERIFIED FAKE
[A verified fake] is verified against (a
subset of) the same test suite as the
real implementation, as well as
providing an introspection API that
allows test cases to verify that it did
the right thing. — Glyph
44. VERIFIED FAKE
[A verified fake] is verified against (a
subset of) the same test suite as the
real implementation, as well as
providing an introspection API that
allows test cases to verify that it did
the right thing. — Glyph
45. VERIFIED FAKE
[A verified fake] is verified against (a
subset of) the same test suite as the
real implementation, as well as
providing an introspection API that
allows test cases to verify that it did
the right thing. — Glyph