You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In searching around for a resolution to this issue I realized that testcontainers in PyPi was published just last week with v4.4.0, while testcontainers-mongodb (and other packages like testcontainers-postgres) have not been published to PyPi since January 2023, and are only v0.0.1rc1.
I looked up this GitHub repository, saw the mongodbextra, and then removed the testcontainers-mongodb I had installed previously, and installed testcontainers[mongodb] instead.
This resolved my issue in that I am now able to set the username, password, and dbname kwargs that I wanted to. But I wanted to log an issue here to raise a request for some clarity around the best way to install testcontainers for Python.
I'm happy to contribute some draft documentation but may need some direction on where/how that should be done.
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm new to testcontainers and have been working on getting it set up to run MongoDB tests in Python.
I found https://testcontainers.com/guides/getting-started-with-testcontainers-for-python/ which instructs to install
testcontainers-postgres
, so I searched PyPi fortestcontainers-mongo
, found https://pypi.org/project/testcontainers-mongodb/, installed it (specifically withpoetry add --group dev testcontainers-mongod
, which installed v0.0.1rc1), and started using it to write tests.I then ran into errors when trying to set the
username
,password
, anddbname
kwargs, which the documentation says I should be able to set:In searching around for a resolution to this issue I realized that
testcontainers
in PyPi was published just last week with v4.4.0, whiletestcontainers-mongodb
(and other packages liketestcontainers-postgres
) have not been published to PyPi since January 2023, and are only v0.0.1rc1.I looked up this GitHub repository, saw the
mongodb
extra, and then removed thetestcontainers-mongodb
I had installed previously, and installedtestcontainers[mongodb]
instead.This resolved my issue in that I am now able to set the
username
,password
, anddbname
kwargs that I wanted to. But I wanted to log an issue here to raise a request for some clarity around the best way to install testcontainers for Python.I'm happy to contribute some draft documentation but may need some direction on where/how that should be done.
The text was updated successfully, but these errors were encountered: