Skip to content

Commit

Permalink
Update content
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaprasadreddy committed Dec 6, 2023
1 parent 8f12053 commit e59cbdd
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ In the *setup()* fixture function, we are starting the PostgreSQL container and
In the *setup_data()* fixture function, we are deleting all the records in the *customers* table.
This is a *function* scoped fixture, which will be executed before running every test.

[NOTE]
As of now Testcontainers for Python does not yet implement automatic resource cleanup using https://github.com/testcontainers/moby-ryuk[Ryuk],
so we are explicitly removing the created container using a finalizer.

Now let's implement the tests as follows:

[source,python]
Expand Down

0 comments on commit e59cbdd

Please sign in to comment.