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

pep8

parent efdc4db1
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,7 @@ def _juniper_field_update(record): ...@@ -55,7 +55,7 @@ def _juniper_field_update(record):
return '' return ''
def _empty(s): def _empty(s):
return s is None or s == '' return s is None or s == ''
for end in ['', 'other_end_']: for end in ['', 'other_end_']:
if not record[end + "interface_name"]: if not record[end + "interface_name"]:
......
import json import json
import logging import logging
import os import os
import re
import time import time
from celery import Task, states from celery import Task, states
......
...@@ -351,7 +351,7 @@ CIRCUIT_INFO_SCHEMA = { ...@@ -351,7 +351,7 @@ CIRCUIT_INFO_SCHEMA = {
"additionalProperties": False "additionalProperties": False
} }
def test_get_circuits(connection, cached_test_data): def test_get_circuits(connection, cached_test_data):
import re
for circuit in opsdb.get_circuits(connection): for circuit in opsdb.get_circuits(connection):
jsonschema.validate(circuit, CIRCUIT_INFO_SCHEMA) jsonschema.validate(circuit, CIRCUIT_INFO_SCHEMA)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment