Explorar o código

doc: add 'self' to test_send_order.test_failure (#3718)

Daniel Hahler %!s(int64=8) %!d(string=hai) anos
pai
achega
7ba12982dc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      docs/userguide/testing.rst

+ 1 - 1
docs/userguide/testing.rst

@@ -71,7 +71,7 @@ in this example:
 
         @patch('proj.tasks.Product.order')
         @patch('proj.tasks.send_order.retry')
-        def test_failure(send_order_retry, product_order):
+        def test_failure(self, send_order_retry, product_order):
             product = Product.objects.create(
                 name='Foo',
             )