Skip to content

Commit f2ad443

Browse files
committed
Add integration test for Application.charm_name
1 parent fc2a954 commit f2ad443

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
@@ -297,3 +297,13 @@ async def test_app_remove_wait_flag(event_loop):
297297

298298
await model.remove_application(app.name, block_until_done=True)
299299
assert a_name not in model.applications
300+
301+
302+
@base.bootstrapped
303+
@pytest.mark.asyncio
304+
async def test_app_charm_name(event_loop):
305+
async with base.CleanModel() as model:
306+
app = await model.deploy('ubuntu')
307+
await model.wait_for_idle(status="active")
308+
assert 'ubuntu' in app.charm_url
309+
assert 'ubuntu' == app.charm_name

0 commit comments

Comments
 (0)