Skip to content

Commit ec03404

Browse files
committed
Revise the test_upgrade_local_charm
1 parent 5d843ec commit ec03404

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/integration/test_application.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,10 @@ async def test_upgrade_local_charm(event_loop):
245245
async with base.CleanModel() as model:
246246
tests_dir = Path(__file__).absolute().parent
247247
charm_path = tests_dir / 'upgrade-charm'
248-
app = await model.deploy('cs:ubuntu', series='focal')
248+
app = await model.deploy('ch:ubuntu', series='focal')
249249
await model.wait_for_idle(status="active")
250-
assert app.data['charm-url'].startswith('cs:ubuntu')
250+
assert app.data['charm-url'].startswith('ch:') and 'ubuntu' in \
251+
app.data['charm-url']
251252
await app.upgrade_charm(path=charm_path)
252253
await model.wait_for_idle(status="waiting")
253254
assert app.data['charm-url'] == 'local:focal/ubuntu-0'

0 commit comments

Comments
 (0)