Skip to content
Snippets Groups Projects
Commit 811b5234 authored by Erik Reid's avatar Erik Reid
Browse files

pep8

parent 3deb6d5b
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,8 @@ def mocked_worker_module(mocker, data_config): ...@@ -31,7 +31,8 @@ def mocked_worker_module(mocker, data_config):
MockedRedis) MockedRedis)
def test_juniper_refresh_bgp(mocked_worker_module, mocker, cached_test_data): def test_juniper_refresh_bgp(
mocked_worker_module, mocker, cached_test_data):
def _mocked_fetch_bpg_config(hostname, _): def _mocked_fetch_bpg_config(hostname, _):
return cached_test_data[hostname]["bgp"] return cached_test_data[hostname]["bgp"]
...@@ -46,7 +47,8 @@ def test_juniper_refresh_bgp(mocked_worker_module, mocker, cached_test_data): ...@@ -46,7 +47,8 @@ def test_juniper_refresh_bgp(mocked_worker_module, mocker, cached_test_data):
assert MockedRedis.db[hostname]['bgp'] assert MockedRedis.db[hostname]['bgp']
def test_juniper_refresh_interfaces(mocked_worker_module, mocker, cached_test_data): def test_juniper_refresh_interfaces(
mocked_worker_module, mocker, cached_test_data):
def _mocked_fetch_interfaces(hostname, _): def _mocked_fetch_interfaces(hostname, _):
return cached_test_data[hostname]["interfaces"] return cached_test_data[hostname]["interfaces"]
...@@ -61,7 +63,8 @@ def test_juniper_refresh_interfaces(mocked_worker_module, mocker, cached_test_da ...@@ -61,7 +63,8 @@ def test_juniper_refresh_interfaces(mocked_worker_module, mocker, cached_test_da
assert MockedRedis.db[hostname]['interfaces'] assert MockedRedis.db[hostname]['interfaces']
def test_juniper_refresh_vrr(mocked_worker_module, mocker, cached_test_data): def test_juniper_refresh_vrr(
mocked_worker_module, mocker, cached_test_data):
def _mocked_fetch_vrr_config(hostname, _): def _mocked_fetch_vrr_config(hostname, _):
return cached_test_data[hostname]["vrr"] return cached_test_data[hostname]["vrr"]
......
...@@ -43,8 +43,6 @@ def test_version_request(client): ...@@ -43,8 +43,6 @@ def test_version_request(client):
version_schema) version_schema)
class MockedRedis(object): class MockedRedis(object):
db = None db = None
......
import json
import os import os
import re import re
import jsonschema
import pytest import pytest
from inventory_provider import juniper from inventory_provider import juniper
......
import json import json
import os import os
from io import StringIO
import jsonschema import jsonschema
import pytest import pytest
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment