Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install dev dependencies in CI to fix some tests #14

Merged
merged 1 commit into from
Oct 16, 2023
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
2 changes: 1 addition & 1 deletion docker_build/bake_ci.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ target "ci_with_src" {
"COPY --from=bake_ctx_dl_src_terrarium / /src/",
"COPY --from=bake_ctx_dl_src_ci / /src/",
"RUN . /venv/bin/activate && pip install -e /src/terrarium/bi_ci",
"RUN . /venv/bin/activate && cd /src/metapkg/ && poetry install --no-root --without=dev --with=ci",
"RUN . /venv/bin/activate && cd /src/metapkg/ && poetry install --no-root --with=dev --with=ci",
# todo: include stubs into the metapkg pyproject.toml
"RUN . /venv/bin/activate && pip install -r /src/ci/requirements_types.txt"
])
Expand Down
1 change: 1 addition & 0 deletions lib/dl_core/dl_core_tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pytest_plugins = ("aiohttp.pytest_plugin",) # and it, in turn, includes 'pytest_asyncio.plugin'
3 changes: 0 additions & 3 deletions lib/dl_core/dl_core_tests/db/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,5 @@
from dl_core_tests.db.config import CORE_TEST_CONFIG


pytest_plugins = ("aiohttp.pytest_plugin",) # and it, in turn, includes 'pytest_asyncio.plugin'


def pytest_configure(config): # noqa
initialize_core_test(pytest_config=config, core_test_config=CORE_TEST_CONFIG)
3 changes: 0 additions & 3 deletions lib/dl_core/dl_core_tests/unit/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
import pytest


pytest_plugins = ("aiohttp.pytest_plugin",) # and it, in turn, includes 'pytest_asyncio.plugin'


@pytest.fixture
def loop(event_loop):
asyncio.set_event_loop(event_loop)
Expand Down
Loading