fix code tag in connections.md (#1189)

* Update connections.md

* Update testing.md
main
Ryan Febriansyah 5 years ago committed by GitHub
parent 2e245a7b4e
commit 71b01ba1b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -16,7 +16,7 @@ pass in Redis connection references to queues directly.
<strong>Note:</strong> <strong>Note:</strong>
<p> <p>
The use of <code>use_connection</code> is deprecated. The use of <code>use_connection</code> is deprecated.
Please don't use `use_connection` in your scripts. Please don't use <code>use_connection</code> in your scripts.
Instead, use explicit connection management. Instead, use explicit connection management.
</p> </p>
</div> </div>

@ -27,7 +27,7 @@ Another solution for testing purposes is to use the `is_async=False` queue
parameter, that instructs it to instantly perform the job in the same parameter, that instructs it to instantly perform the job in the same
thread instead of dispatching it to the workers. Workers are not required thread instead of dispatching it to the workers. Workers are not required
anymore. anymore.
Additionally, we can use fakeredis to mock a redis instance, so we don't have to Additionally, we can use fake redis to mock a redis instance, so we don't have to
run a redis server separately. The instance of the fake redis server can run a redis server separately. The instance of the fake redis server can
be directly passed as the connection argument to the queue: be directly passed as the connection argument to the queue:

Loading…
Cancel
Save