Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
Update charm libraries (#35)
Browse files Browse the repository at this point in the history
Co-authored-by: Github Actions <[email protected]>
Co-authored-by: Ryan Barry <[email protected]>
  • Loading branch information
3 people authored Apr 12, 2023
1 parent 896a63a commit 59c7eec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/charms/traefik_k8s/v1/ingress_per_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def _on_ingress_revoked(self, event: IngressPerUnitRevokedForUnitEvent):

# Increment this PATCH version before using `charmcraft publish-lib` or reset
# to 0 if you are raising the major API version
LIBPATCH = 9
LIBPATCH = 10

log = logging.getLogger(__name__)

Expand Down Expand Up @@ -801,7 +801,7 @@ def _urls_from_relation_data(self) -> Dict[str, str]:
if not relation:
return {}

if not relation.app and not relation.app.name: # type: ignore
if not relation.app or not relation.app.name: # type: ignore
# FIXME Workaround for https://github.com/canonical/operator/issues/693
# We must be in a relation_broken hook
return {}
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ show_missing = true
[tool.pytest.ini_options]
minversion = "6.0"
log_cli_level = "INFO"
asyncio_mode = "auto"

# Formatting tools configuration
[tool.black]
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ description = Run integration tests
deps =
asyncstdlib
pytest
juju==3.0.4
pytest-operator==1.0.0b1
juju ~= 3.1.0
pytest-operator
-r{toxinidir}/requirements.txt
commands =
pytest -v --tb native --ignore={[vars]tst_path}unit --log-cli-level=INFO -s {posargs}

0 comments on commit 59c7eec

Please sign in to comment.