[go: nahoru, domu]

Skip to content

Commit

Permalink
Fix docs typos (#7796)
Browse files Browse the repository at this point in the history
  • Loading branch information
xofbd committed Jun 29, 2024
1 parent b53b63c commit bfc7616
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ Moto will delete any data after the mock ends, so the state is not shared across

What about those pesky imports
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
As mentioned earlier, mocks should be established __BEFORE__ the clients are set up.
As mentioned earlier, mocks should be established *BEFORE* the clients are set up.

Some background on why this is necessary: :raw-html:`<br />`
Moto intercepts HTTP requests using a custom event handler that hooks into botocore's event-system. :raw-html:`<br />`
Expand All @@ -303,7 +303,7 @@ Example:
.. sourcecode:: python

def test_something(aws):
# s3 is a fixture defined above that yields a boto3 s3 client.
# aws is a fixture defined above that yields a boto3 s3 client.

from some.package.that.does.something.with.s3 import some_func # <-- Local import for unit test
# ^^ Importing here ensures that the mock has been established.
Expand Down

0 comments on commit bfc7616

Please sign in to comment.