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 366b6cd commit 272c843Copy full SHA for 272c843
packages/service-library/tests/test_utils_meta.py
@@ -52,10 +52,10 @@ def test_app_name(
52
is_correct_app_name: bool,
53
):
54
55
- mocker.patch(
56
- "servicelib.utils_meta.distribution",
57
- return_value=mocker.Mock(metadata={"Name": app_name, "Version": "1.0.0"}),
58
- )
+ def mock_distribution(name):
+ return mocker.Mock(metadata={"Name": app_name, "Version": "1.0.0"})
+
+ mocker.patch("servicelib.utils_meta.distribution", side_effect=mock_distribution)
59
if is_valid_app_name:
60
info = PackageInfo(package_name=package_name)
61
if is_correct_app_name:
0 commit comments