PatchedDriver overload
This commit is contained in:
1 parent
aa1ad764f1
commit
37ae8512c0
1 file changed
+12
@@ -37,6 +37,18 @@ class PatchedVyOSDriver(vyos.VyOSDriver):
|
||||
self.patched_attrs = ['device']
|
||||
self.device = FakeVyOSDevice()
|
||||
|
||||
def disconnect(self):
|
||||
pass
|
||||
|
||||
def is_alive(self):
|
||||
return {
|
||||
'is_alive': True # In testing everything works..
|
||||
}
|
||||
|
||||
def open(self):
|
||||
pass
|
||||
|
||||
|
||||
|
||||
class FakeVyOSDevice(BaseTestDouble):
|
||||
"""VyOS device test double."""
|
||||
|
||||
Reference in new issue
Block a user