File tree Expand file tree Collapse file tree
openstackclient/tests/unit Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1121,10 +1121,7 @@ def setUp(self):
11211121 'network' : fake_network_endpoint
11221122 }
11231123
1124- self .app .client_manager .network = network_fakes .FakeNetworkV2Client (
1125- endpoint = fakes .AUTH_URL ,
1126- token = fakes .AUTH_TOKEN ,
1127- )
1124+ self .app .client_manager .network = mock .Mock ()
11281125 self .network = self .app .client_manager .network
11291126 self .network .get_quota = mock .Mock (
11301127 return_value = network_fakes .QUOTA ,
Original file line number Diff line number Diff line change 3939from openstackclient .tests .unit import fakes
4040from openstackclient .tests .unit .identity .v2_0 import fakes as identity_fakes
4141from openstackclient .tests .unit .image .v2 import fakes as image_fakes
42- from openstackclient .tests .unit .network .v2 import fakes as network_fakes
4342from openstackclient .tests .unit import utils
4443from openstackclient .tests .unit .volume .v2 import fakes as volume_fakes
4544
@@ -150,7 +149,7 @@ def __init__(self, **kwargs):
150149
151150class TestComputev2 (utils .TestCommand ):
152151 def setUp (self ):
153- super (TestComputev2 , self ).setUp ()
152+ super ().setUp ()
154153
155154 self .app .client_manager .compute = FakeComputev2Client (
156155 endpoint = fakes .AUTH_URL ,
@@ -172,10 +171,7 @@ def setUp(self):
172171 token = fakes .AUTH_TOKEN ,
173172 )
174173
175- self .app .client_manager .network = network_fakes .FakeNetworkV2Client (
176- endpoint = fakes .AUTH_URL ,
177- token = fakes .AUTH_TOKEN ,
178- )
174+ self .app .client_manager .network = mock .Mock ()
179175
180176 self .app .client_manager .volume = volume_fakes .FakeVolumeClient (
181177 endpoint = fakes .AUTH_URL ,
Original file line number Diff line number Diff line change 9393]
9494
9595
96- class FakeNetworkV2Client (object ):
97- def __init__ (self , ** kwargs ):
98- self .session = mock .Mock ()
99- self .extensions = mock .Mock ()
100- self .extensions .resource_class = fakes .FakeResource (None , {})
101-
102-
10396class TestNetworkV2 (utils .TestCommand ):
10497 def setUp (self ):
10598 super ().setUp ()
You can’t perform that action at this time.
0 commit comments