File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -434,9 +434,9 @@ async def run(self, context):
434434 if self .charm .startswith ('local:' ):
435435 return self .charm
436436
437- entity_id = await context .charmstore .entityId (self .charm )
437+ entity_id = await context .charmstore .entityId (self .charm , channel = self . channel )
438438 log .debug ('Adding %s' , entity_id )
439- await context .client_facade .AddCharm (channel = None , url = entity_id , force = False )
439+ await context .client_facade .AddCharm (channel = self . channel , url = entity_id , force = False )
440440 return entity_id
441441
442442 def __str__ (self ):
Original file line number Diff line number Diff line change @@ -303,10 +303,10 @@ async def test_run(self, event_loop):
303303 assert result == "entity_id"
304304
305305 charmstore .entityId .assert_called_once ()
306- charmstore .entityId .assert_called_with ("charm" )
306+ charmstore .entityId .assert_called_with ("charm" , channel = "channel" )
307307
308308 client_facade .AddCharm .assert_called_once ()
309- client_facade .AddCharm .assert_called_with (channel = None ,
309+ client_facade .AddCharm .assert_called_with (channel = "channel" ,
310310 url = "entity_id" ,
311311 force = False )
312312
You can’t perform that action at this time.
0 commit comments