@@ -21,7 +21,6 @@ async def test_expose_with_exposed_endpoints_as_raw_dict(self, mock_conn):
2121 mock_facade ().Expose .return_value .set_result ([])
2222
2323 app = Application (entity_id = "app-id" , model = Model ())
24- app .name = "panther"
2524 app ._facade = mock_facade
2625 app ._facade_version = mock_facade_version
2726
@@ -37,7 +36,7 @@ async def test_expose_with_exposed_endpoints_as_raw_dict(self, mock_conn):
3736 })
3837
3938 mock_facade ().Expose .assert_called_once_with (
40- application = "panther " ,
39+ application = "app-id " ,
4140 exposed_endpoints = {
4241 "" : {
4342 "expose-to-spaces" : ["alpha" ],
@@ -53,7 +52,6 @@ async def test_expose_with_exposed_endpoints(self, mock_conn):
5352 mock_facade ().Expose .return_value .set_result ([])
5453
5554 app = Application (entity_id = "app-id" , model = Model ())
56- app .name = "panther"
5755 app ._facade = mock_facade
5856 app ._facade_version = mock_facade_version
5957
@@ -67,7 +65,7 @@ async def test_expose_with_exposed_endpoints(self, mock_conn):
6765 })
6866
6967 mock_facade ().Expose .assert_called_once_with (
70- application = "panther " ,
68+ application = "app-id " ,
7169 exposed_endpoints = {
7270 "" : {
7371 "expose-to-spaces" : ["alpha" ],
@@ -89,7 +87,6 @@ async def test_expose_endpoints_on_older_controller(self, mock_conn):
8987 mock_facade ().Expose .return_value .set_result ([])
9088
9189 app = Application (entity_id = "app-id" , model = Model ())
92- app .name = "panther"
9390 app ._facade = mock_facade
9491 app ._facade_version = mock_facade_version
9592
@@ -125,7 +122,7 @@ async def test_expose_endpoints_on_older_controller(self, mock_conn):
125122
126123 # Check that we call the facade with the right arity.
127124 await app .expose ()
128- mock_facade ().Expose .assert_called_once_with (application = "panther " )
125+ mock_facade ().Expose .assert_called_once_with (application = "app-id " )
129126
130127
131128class TestUnExposeApplication (unittest .IsolatedAsyncioTestCase ):
@@ -137,7 +134,6 @@ async def test_unexpose_endpoints_on_older_controller(self, mock_conn):
137134 mock_facade ().Unexpose .return_value .set_result ([])
138135
139136 app = Application (entity_id = "app-id" , model = Model ())
140- app .name = "panther"
141137 app ._facade = mock_facade
142138 app ._facade_version = mock_facade_version
143139
@@ -148,7 +144,7 @@ async def test_unexpose_endpoints_on_older_controller(self, mock_conn):
148144
149145 # Check that we call the facade with the right arity.
150146 await app .unexpose ()
151- mock_facade ().Unexpose .assert_called_once_with (application = "panther " )
147+ mock_facade ().Unexpose .assert_called_once_with (application = "app-id " )
152148
153149 @mock .patch ("juju.model.Model.connection" )
154150 async def test_unexpose_endpoints_on_29_controller (self , mock_conn ):
@@ -158,14 +154,13 @@ async def test_unexpose_endpoints_on_29_controller(self, mock_conn):
158154 mock_facade ().Unexpose .return_value .set_result ([])
159155
160156 app = Application (entity_id = "app-id" , model = Model ())
161- app .name = "panther"
162157 app ._facade = mock_facade
163158 app ._facade_version = mock_facade_version
164159
165160 await app .unexpose (exposed_endpoints = ["alpha" , "beta" ])
166161
167162 mock_facade ().Unexpose .assert_called_once_with (
168- application = "panther " ,
163+ application = "app-id " ,
169164 exposed_endpoints = ["alpha" , "beta" ]
170165 )
171166
0 commit comments