Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions providers/mongo/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@ requires-python = ">=3.10"
dependencies = [
"apache-airflow>=2.10.0",
"dnspython>=1.13.0",
# mongomock does not work with pymongo 4.11.
# See https://github.com/apache/airflow/issues/46215 and this one can be removed after
# https://github.com/mongomock/mongomock/issues/912 is closed by mongomock.
"pymongo>=4.3.0,<4.11.0",
"pymongo>=4.13.2",
]

[dependency-groups]
Expand All @@ -71,7 +68,7 @@ dev = [
"apache-airflow-task-sdk",
"apache-airflow-devel-common",
# Additional devel dependencies (do not remove this line and add extra development dependencies)
"mongomock>=4.3.0",
"testcontainers>=4.12.0"
]

# To build docs:
Expand Down
9 changes: 9 additions & 0 deletions providers/mongo/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,13 @@
# under the License.
from __future__ import annotations

import pytest
from testcontainers.mongodb import MongoDbContainer

pytest_plugins = "tests_common.pytest_plugin"


@pytest.fixture(scope="session")
def mongodb_container():
with MongoDbContainer("mongo:latest") as mongo:
yield mongo.get_connection_url()
Loading