Skip to content

Commit

Permalink
Remove ops from integration test dependencies (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlcsaposs-canonical authored Dec 11, 2023
1 parent 19c37be commit 379b772
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 25 deletions.
24 changes: 2 additions & 22 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ pytest-operator = "^0.28.0"
pytest-operator-cache = {git = "https://github.com/canonical/data-platform-workflows", tag = "v6.1.1", subdirectory = "python/pytest_plugins/pytest_operator_cache"}
pytest-operator-groups = {git = "https://github.com/canonical/data-platform-workflows", tag = "v6.1.1", subdirectory = "python/pytest_plugins/pytest_operator_groups"}
juju = "^3.2.2"
ops = "^2.5.0"
mysql-connector-python = "~8.0.33"
tenacity = "^8.2.2"
boto3 = "^1.28.11"
Expand Down
3 changes: 1 addition & 2 deletions tests/integration/juju_.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
import importlib.metadata

import juju.unit
import ops

# libjuju version != juju agent version, but the major version should be identical—which is good
# enough to check for secrets
_libjuju_version = importlib.metadata.version("juju")
has_secrets = ops.JujuVersion(_libjuju_version).has_secrets
has_secrets = int(_libjuju_version.split(".")[0]) >= 3


async def run_action(unit: juju.unit.Unit, action_name, **params):
Expand Down

0 comments on commit 379b772

Please sign in to comment.