The recently imposed "must be logged in" restriction is a response to increased bot traffic on the site. This affects search, commits, and vuxml pages.
Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
This service is getting updated while this announcement is displayed. Commit processing is paused. Started at 16:21 - expected finish: 19:00 (was 18:00) UTC
Port details on branch 2025Q1
py-mockRolling backport of unittest.mock for all Pythons
5.2.0_1develΣ=7 5.2.0_1Version of this port present on the latest quarterly branch.
mock is a library for testing in Python. It allows you to replace parts of
your system under test with mock objects and make assertions about how
they have been used.
mock is now part of the Python standard library, available as
unittest.mock in Python 3.3 onwards.
This package contains a rolling backport of the standard library mock code
compatible with Python 2.7 and 3.4 and up.
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py311-mock listed in the above command, you can pick from the names under the Packages section.