mirror of
https://github.com/napalm-automation-community/napalm-vyos.git
synced 2026-09-23 04:31:16 +00:00
fixes for pylama
This commit is contained in:
@@ -37,7 +37,6 @@ class PatchedVyOSDriver(vyos.VyOSDriver):
|
|||||||
|
|
||||||
self.patched_attrs = ['device']
|
self.patched_attrs = ['device']
|
||||||
self.device = FakeVyOSDevice()
|
self.device = FakeVyOSDevice()
|
||||||
#self._device = FakeVyOSDevice()
|
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
pass
|
pass
|
||||||
@@ -54,8 +53,6 @@ class PatchedVyOSDriver(vyos.VyOSDriver):
|
|||||||
class FakeVyOSDevice(BaseTestDouble):
|
class FakeVyOSDevice(BaseTestDouble):
|
||||||
"""VyOS device test double."""
|
"""VyOS device test double."""
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def send_command(self, command, **kwargs):
|
def send_command(self, command, **kwargs):
|
||||||
filename = '{}.text'.format(self.sanitize_text(command))
|
filename = '{}.text'.format(self.sanitize_text(command))
|
||||||
print filename
|
print filename
|
||||||
|
|||||||
Reference in New Issue
Block a user