Skip to content

Commit

Permalink
Improved tips section
Browse files Browse the repository at this point in the history
  • Loading branch information
spookylukey committed Jan 6, 2023
1 parent 4f526aa commit 6e6c077
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/tips.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ built in. When this is not sufficient, however, it’s tempting do a bit of::
time.sleep(0.2) # Should be enough…


This works great until you run the test on CI or on a busy machine and it take
This works great until you run the test on CI or on a busy machine and it takes
205ms instead of 200ms. You don’t really want to add 10 second delay to be
**really** sure, so you end with a flaky test suite that fails randomly, and
life is miserable.
Expand All @@ -40,6 +40,11 @@ If these fail, they fail with a timeout, which means they wait a long time
before failing. This is a bit annoying, but it’s usually better than the
alternative.

Some of the builtin positive assertions automatically insert waits for you — for
example meth:`~django_functest.FuncCommonApi.assertTextPresent` will
automatically wait for the specified element (``body`` by default) to be
present.


Use FuncBaseMixin
-----------------
Expand Down

0 comments on commit 6e6c077

Please sign in to comment.