google-cloud-testutils 1.8.0__tar.gz → 1.9.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {google_cloud_testutils-1.8.0/google_cloud_testutils.egg-info → google_cloud_testutils-1.9.0}/PKG-INFO +1 -1
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0/google_cloud_testutils.egg-info}/PKG-INFO +1 -1
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/test_utils/lower_bound_checker/lower_bound_checker.py +1 -1
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/test_utils/version.py +1 -1
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/tests/unit/test_lower_bound_checker.py +14 -2
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/LICENSE +0 -0
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/MANIFEST.in +0 -0
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/README.rst +0 -0
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/google_cloud_testutils.egg-info/SOURCES.txt +0 -0
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/google_cloud_testutils.egg-info/dependency_links.txt +0 -0
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/google_cloud_testutils.egg-info/entry_points.txt +0 -0
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/google_cloud_testutils.egg-info/not-zip-safe +0 -0
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/google_cloud_testutils.egg-info/requires.txt +0 -0
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/google_cloud_testutils.egg-info/top_level.txt +0 -0
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/setup.cfg +0 -0
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/setup.py +0 -0
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/test_utils/__init__.py +0 -0
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/test_utils/imports.py +0 -0
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/test_utils/lower_bound_checker/__init__.py +0 -0
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/test_utils/orchestrate.py +0 -0
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/test_utils/prefixer.py +0 -0
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/test_utils/py.typed +0 -0
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/test_utils/retry.py +0 -0
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/test_utils/system.py +0 -0
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/test_utils/vpcsc_config.py +0 -0
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/tests/system/README.md +0 -0
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/tests/unit/resources/bad_package/setup.py +0 -0
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/tests/unit/resources/good_package/setup.py +0 -0
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/tests/unit/test_orchestrate.py +0 -0
- {google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/tests/unit/test_prefixer.py +0 -0
|
@@ -121,7 +121,7 @@ def _lower_bound(requirement: Requirement) -> str:
|
|
|
121
121
|
Returns:
|
|
122
122
|
str: The lower bound for the requirement.
|
|
123
123
|
"""
|
|
124
|
-
spec_set =
|
|
124
|
+
spec_set = [s for s in requirement.specifier if s.operator != "!="]
|
|
125
125
|
|
|
126
126
|
# sort by operator: <, then >=
|
|
127
127
|
spec_set.sort(key=lambda x: x.operator)
|
{google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/tests/unit/test_lower_bound_checker.py
RENAMED
|
@@ -170,7 +170,7 @@ def test_update_constraints_with_setup_py_missing_lower_bounds():
|
|
|
170
170
|
assert "setup.py is missing explicit lower bounds" in result.output
|
|
171
171
|
|
|
172
172
|
invalid_pkg_list = parse_error_msg(result.output)
|
|
173
|
-
assert set(invalid_pkg_list) == {"requests", "
|
|
173
|
+
assert set(invalid_pkg_list) == {"requests", "wheel"}
|
|
174
174
|
|
|
175
175
|
|
|
176
176
|
def test_check():
|
|
@@ -311,4 +311,16 @@ def test_check_with_setup_py_missing_lower_bounds():
|
|
|
311
311
|
assert result.exit_code == 2
|
|
312
312
|
|
|
313
313
|
invalid_pkg_list = parse_error_msg(result.output)
|
|
314
|
-
assert set(invalid_pkg_list) == {"requests", "
|
|
314
|
+
assert set(invalid_pkg_list) == {"requests", "wheel"}
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
def test_lower_bound_with_exclusion():
|
|
318
|
+
from packaging.requirements import Requirement
|
|
319
|
+
|
|
320
|
+
req = Requirement("google-auth>=1.25.0, !=2.24.0")
|
|
321
|
+
assert lower_bound_checker._lower_bound(req) == "1.25.0"
|
|
322
|
+
|
|
323
|
+
# Multiple exclusions
|
|
324
|
+
req_multiple = Requirement("google-auth>=1.25.0, !=2.24.0, !=2.25.0")
|
|
325
|
+
assert lower_bound_checker._lower_bound(req_multiple) == "1.25.0"
|
|
326
|
+
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{google_cloud_testutils-1.8.0 → google_cloud_testutils-1.9.0}/tests/unit/test_orchestrate.py
RENAMED
|
File without changes
|
|
File without changes
|