Skip to content

Commit

Permalink
Merge pull request #341 from hjwp/20241220_jg_review_chapter_22
Browse files Browse the repository at this point in the history
Review chapter 22
  • Loading branch information
hjwp authored Jan 29, 2025
2 parents 77dc01e + 00679a4 commit e3be56d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chapter_22_fixtures_and_wait_decorator.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ def wait(fn): #<1>
return modified_fn #<2>
----
====
// JAN: Why not use functools.wraps here?

<1> A decorator is a way of modifying a function;
it takes a function as an [keep-together]#argument...#
Expand Down Expand Up @@ -510,6 +511,7 @@ $ pass:quotes[*python src/manage.py test functional_tests.test_my_lists*]
OK
----

// JAN: This command runs no tests foe me - Ran 0 tests in 0.000s

And do you know what's truly satisfying?
We can use our `wait` decorator for our `self.wait_for` helper as well!
Expand Down

0 comments on commit e3be56d

Please sign in to comment.