mirror of
https://github.com/pypa/pipenv.git
synced 2026-05-06 08:26:42 -04:00
1dcdc448ba
The previous test computed the cutoff locally without ever calling resolver.pip_options, so it would pass even if uploaded_prior_to was never set. Rewrite it to call resolver.pip_options directly (stubbing pip_command, pip_args, and check_release_control_exclusive) and assert that pip_options.uploaded_prior_to is set to approximately now - timedelta(days=30). Also drop the unused SimpleNamespace import. Signed-off-by: Oz Tiram <oz.tiram@gmail.com>