Commit be013d7
authored
Merge pull request #954 from sed-i/patch-1
#954
#### Description
Every integration test currently ends with a warning:
```
tests/integration/test_bundle.py::test_loki_receives_logs
/home/ubuntu/code/o11y/cos-lite-bundle/.tox/integration/lib/python3.10/site-packages/juju/model.py:1513: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
log.warn("relate is deprecated and will be removed. Use integrate instead.")
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
```
Fixes:
- Use `warning` instead of `warn`.
#### QA Steps
Run any integration test that includes a `relate` call and make sure the warning is gone from the summary.1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1558 | 1558 | | |
1559 | 1559 | | |
1560 | 1560 | | |
1561 | | - | |
| 1561 | + | |
1562 | 1562 | | |
1563 | 1563 | | |
1564 | 1564 | | |
| |||
0 commit comments