Skip to content

Commit 6e9950e

Browse files
committed
Add test for deploying local charm with channel argument
1 parent 6642cfe commit 6e9950e

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

tests/integration/test_model.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,18 @@ async def test_deploy_local_charm(event_loop):
149149
assert model.units['charm/0'].workload_status == 'active'
150150

151151

152+
@base.bootstrapped
153+
@pytest.mark.asyncio
154+
async def test_deploy_local_charm_channel(event_loop):
155+
charm_path = TESTS_DIR / 'charm'
156+
157+
async with base.CleanModel() as model:
158+
await model.deploy(str(charm_path), channel='stable')
159+
assert 'charm' in model.applications
160+
await model.wait_for_idle(status="active")
161+
assert model.units['charm/0'].workload_status == 'active'
162+
163+
152164
@base.bootstrapped
153165
@pytest.mark.asyncio
154166
async def test_wait_local_charm_blocked(event_loop):

0 commit comments

Comments
 (0)