Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct confusing name and fix typos #135

Merged
merged 2 commits into from May 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/datetime.txt
Expand Up @@ -6,13 +6,13 @@ Mocking dates and times
Testing code that involves dates and times or which has behaviour
dependent on the date or time it is executed at has historically been
tricky. Mocking lets you perform tests on this type of code and
TestFixtures provides three specialised mock objects to help with
testfixtures provides three specialised mock objects to help with
this.

Dates
~~~~~

TestFixtures provides the :func:`~testfixtures.test_date` function
The testfixtures package provides the :func:`~testfixtures.test_date` function
that returns a subclass of :class:`datetime.date` with a
:meth:`~datetime.date.today` method that will return a
consistent sequence of dates each time it is called.
Expand Down Expand Up @@ -99,7 +99,7 @@ this will be the set date plus the ``delta`` in effect:
Datetimes
~~~~~~~~~

TextFixtures provides the :func:`~testfixtures.test_datetime`
The testfixtures package provides the :func:`~testfixtures.test_datetime`
function that returns a subclass of :class:`datetime.datetime` with
a :meth:`~datetime.datetime.now` method that will return a
consistent sequence of :obj:`~datetime.datetime` objects each time
Expand Down Expand Up @@ -294,7 +294,7 @@ Likewise, :meth:`~tdatetime.add` behaves the same way:
Times
~~~~~

TextFixtures provides the :func:`~testfixtures.test_time`
The testfixtures package provides the :func:`~testfixtures.test_time`
function that, when called, returns a replacement for the
:func:`time.time` function.

Expand Down