Skip to content

Commit 034172c

Browse files
committed
Add integration test for Application.charm_name
1 parent 35e96dd commit 034172c

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tests/integration/test_application.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,3 +285,13 @@ async def test_app_remove_wait_flag(event_loop):
285285

286286
await model.remove_application(app.name, block_until_done=True)
287287
assert a_name not in model.applications
288+
289+
290+
@base.bootstrapped
291+
@pytest.mark.asyncio
292+
async def test_app_charm_name(event_loop):
293+
async with base.CleanModel() as model:
294+
app = await model.deploy('ubuntu')
295+
await model.wait_for_idle(status="active")
296+
assert 'ubuntu' in app.charm_url
297+
assert 'ubuntu' == app.charm_name

0 commit comments

Comments
 (0)