File tree 2 files changed +14
-16
lines changed
guide/getting-started-with-testcontainers-for-python
2 files changed +14
-16
lines changed Original file line number Diff line number Diff line change @@ -44,13 +44,13 @@ $ source venv/bin/activate
44
44
45
45
We are going to use https://www.psycopg.org/psycopg3/[psycopg3] for talking to the Postgres database,
46
46
https://pytest.org/[pytest] for testing,
47
- and https://testcontainers-python.readthedocs.io/en/latest/README.html [testcontainers-python] for running a PostgreSQL database in a container.
47
+ and https://testcontainers-python.readthedocs.io/[testcontainers-python] for running a PostgreSQL database in a container.
48
48
49
49
Once the virtual environment is activated, we can install the required dependencies using pip as follows:
50
50
51
51
[source,shell]
52
52
----
53
- $ pip install psycopg pytest testcontainers- postgres
53
+ $ pip install psycopg pytest testcontainers[ postgres]
54
54
$ pip freeze > requirements.txt
55
55
----
56
56
Original file line number Diff line number Diff line change 1
- certifi == 2023.11.17
1
+ certifi == 2024.2.2
2
2
charset-normalizer == 3.3.2
3
- docker == 6.1.3
4
- idna == 3.6
3
+ docker == 7.0.0
4
+ exceptiongroup == 1.2.1
5
+ idna == 3.7
5
6
iniconfig == 2.0.0
6
- packaging == 23.2
7
- pluggy == 1.3.0
8
- psycopg == 3.1.14
9
- psycopg2-binary == 2.9.9
10
- pytest == 7.4.3
7
+ packaging == 24.0
8
+ pluggy == 1.5.0
9
+ psycopg == 3.1.18
10
+ pytest == 8.1.1
11
11
requests == 2.31.0
12
- SQLAlchemy == 2.0.23
13
- testcontainers-core == 0.0.1rc1
14
- testcontainers-postgres == 0.0.1rc1
15
- typing_extensions == 4.8.0
16
- urllib3 == 2.1.0
17
- websocket-client == 1.7.0
12
+ testcontainers == 4.4.0
13
+ tomli == 2.0.1
14
+ typing_extensions == 4.11.0
15
+ urllib3 == 2.2.1
18
16
wrapt == 1.16.0
You can’t perform that action at this time.
0 commit comments