Skip to content
Open
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
5 changes: 5 additions & 0 deletions tests/dragonfly/package_install_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
import pytest
from testcontainers.core.container import DockerContainer

pytest.skip(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the module-level skip runs after imports, from testcontainers.core.container import DockerContainer (line 4) will still execute; in environments without this dependency, collection will error instead of skipping. Consider ensuring the skip occurs before optional imports so the file reliably skips when intended.

🤖 Was this useful? React with 👍 or 👎

"These tests will only be run for the action that generates the package repository",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This unconditionally skips the module in all environments; if you intend these tests to run in a dedicated release workflow, they will be skipped there as well. You could gate the skip on a CI-specific condition so the tests still run when triggered by the release action.

🤖 Was this useful? React with 👍 or 👎

allow_module_level=True,
)


def check(container: DockerContainer, cmd: str):
result = container.exec(cmd)
Expand Down
Loading