Skip to content

Commit

Permalink
Merge pull request #135 from dspinellis/patch-1
Browse files Browse the repository at this point in the history
Correct confusing name and fix typos
  • Loading branch information
cjw296 committed May 6, 2020
2 parents b3c7027 + f0e01cb commit ffa52d9
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit ffa52d9

Please sign in to comment.