Skip to content

Commit 4b882ff

Browse files
committed
Format with new black version
1 parent 419f498 commit 4b882ff

20 files changed

+23
-4
lines changed

nuts/base_tests/napalm_bgp_neighbors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Query BGP neighbors of a device or count them."""
2+
23
from typing import Dict, Callable, List, Any
34

45
import pytest

nuts/base_tests/napalm_get_arp.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Query arp table of a device."""
2+
23
from typing import Dict, Callable, List, Any, Text
34

45
import pytest

nuts/base_tests/napalm_get_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Query config of a device."""
2+
23
from typing import Dict, Callable, List, Any
34

45
import pytest

nuts/base_tests/napalm_get_users.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Query users of a device."""
2+
23
from typing import Dict, Callable, List, Any
34

45
import pytest

nuts/base_tests/napalm_get_vlans.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Query vlans of a device."""
2+
23
from typing import Dict, Callable, List, Any
34

45
import pytest

nuts/base_tests/napalm_interfaces.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Query interfaces and their information of a device."""
2+
23
from typing import Dict, Callable, List, Any
34

45
import pytest

nuts/base_tests/napalm_lldp_neighbors.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Query LLDP neighbors of a device."""
2+
23
from typing import Dict, Callable, List, Any
34

45
import pytest
@@ -28,9 +29,9 @@ def _add_remote_host(self, element: Dict[str, Any]) -> Dict[str, Any]:
2829
return element
2930

3031
def _add_expanded_remote_port(self, element: Dict[str, Any]) -> Dict[str, Any]:
31-
element[
32-
"remote_port_expanded"
33-
] = InterfaceNameConverter().expand_interface_name(element["remote_port"])
32+
element["remote_port_expanded"] = (
33+
InterfaceNameConverter().expand_interface_name(element["remote_port"])
34+
)
3435
return element
3536

3637

nuts/base_tests/napalm_network_instances.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Query network instances of a device."""
2+
23
from typing import Dict, List, Callable, Any
34

45
import pytest

nuts/base_tests/napalm_ping.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Let a device ping another device."""
2+
23
from enum import Enum
34
from typing import Dict, Callable, Any, List
45

nuts/base_tests/netmiko_cdp_neighbors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Query CDP neighbors of a device."""
2+
23
from typing import Callable, Dict, Any
34

45
import pytest

nuts/base_tests/netmiko_iperf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Query bandwidth performance between two devices."""
2+
23
import pytest
34
import json
45
from typing import Dict, Callable, Any
@@ -106,7 +107,6 @@ def nuts_extractor(self) -> IperfExtractor:
106107

107108

108109
class IperfResultError(Error):
109-
110110
"""Error in iperf result JSON."""
111111

112112

nuts/base_tests/netmiko_ospf_neighbors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Query OSPF neighbors of a device or count them."""
2+
23
from typing import Callable, Dict, Any
34

45
import pytest

nuts/context.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Provide necessary information that is needed for a specific test."""
2+
23
import pathlib
34
from typing import Any, Callable, Optional, Dict, List
45
from pytest import Config

nuts/helpers/context.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Context helper functions
33
"""
4+
45
import types
56
from nuts.context import NutsContext
67
from typing import Dict, List, Any

nuts/helpers/filters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Functions to filter the nornir inventory and used in conjunction with
33
a context's nornir_filter function.
44
"""
5+
56
from typing import Optional, Dict, Any, List, Union
67
from nornir.core.filter import F, OR
78

nuts/index.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Allows to indicate only the test class name in a test bundle."""
2+
23
from typing import Optional
34

45
default_index = {

nuts/plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Fixtures"""
2+
23
from typing import Optional, Dict, Any
34
from pathlib import Path
45

nuts/yamlloader.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Converts a test bundle (YAML file) into a test class for pytest.
22
Based on https://docs.pytest.org/en/stable/example/nonpython.html#yaml-plugin
33
"""
4+
45
import importlib
56
from nuts.helpers.context import load_context
67
import types

tests/base_tests/simple_nuts_annotation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Classes in this file are needed in integration test in test_nuts_annotation.py
33
"""
4+
45
from nuts.helpers.result import NutsResult, AbstractResultExtractor
56
from typing import Any, Dict
67
from nuts.context import NutsContext

tests/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Helper module with data used by all tests.
33
"""
4+
45
from dataclasses import dataclass
56
from typing import Any, Optional, List, Dict
67

0 commit comments

Comments
 (0)