From 37ae8512c0ee5d502bb386016db170546b5d94da Mon Sep 17 00:00:00 2001 From: Pieprzycki Piotr Date: Mon, 19 Dec 2016 12:22:05 +0100 Subject: [PATCH] PatchedDriver overload --- test/unit/conftest.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/unit/conftest.py b/test/unit/conftest.py index 6b5028d..ce5fce4 100644 --- a/test/unit/conftest.py +++ b/test/unit/conftest.py @@ -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."""