PatchedDriver overload
This commit is contained in:
parent
aa1ad764f1
commit
37ae8512c0
|
|
@ -37,6 +37,18 @@ class PatchedVyOSDriver(vyos.VyOSDriver):
|
||||||
self.patched_attrs = ['device']
|
self.patched_attrs = ['device']
|
||||||
self.device = FakeVyOSDevice()
|
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):
|
class FakeVyOSDevice(BaseTestDouble):
|
||||||
"""VyOS device test double."""
|
"""VyOS device test double."""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue