Skip to content

Commit

Permalink
tests: Run black on pytest changes
Browse files Browse the repository at this point in the history
I used sed to get the pytest changes in place, run black
to get the formatting right.

Signed-off-by: Donald Sharp <[email protected]>
  • Loading branch information
donaldsharp committed Jul 31, 2024
1 parent 5379770 commit 4c812c7
Show file tree
Hide file tree
Showing 174 changed files with 997 additions and 335 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
import glob
from time import sleep

pytestmark = [pytest.mark.random_order(disabled=True),
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.babeld,
pytest.mark.bgpd,
pytest.mark.isisd,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@
from lib.topogen import Topogen, TopoRouter, get_topogen
from lib.topolog import logger

pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bgpd, pytest.mark.bfdd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bgpd,
pytest.mark.bfdd,
]


def setup_module(mod):
Expand Down
6 changes: 5 additions & 1 deletion tests/topotests/bfd_isis_topo1/test_bfd_isis_topo1.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@
from lib.topogen import Topogen, TopoRouter, get_topogen
from lib.topolog import logger

pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bfdd, pytest.mark.isisd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bfdd,
pytest.mark.isisd,
]


def setup_module(mod):
Expand Down
6 changes: 5 additions & 1 deletion tests/topotests/bfd_ospf_topo1/test_bfd_ospf_topo1.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@
from lib.topogen import Topogen, TopoRouter, get_topogen
from lib.topolog import logger

pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bfdd, pytest.mark.ospfd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bfdd,
pytest.mark.ospfd,
]


def setup_module(mod):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@
from lib.topogen import Topogen, TopoRouter, get_topogen
from lib.topolog import logger

pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bfdd, pytest.mark.bgpd, pytest.mark.isisd, pytest.mark.ospfd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bfdd,
pytest.mark.bgpd,
pytest.mark.isisd,
pytest.mark.ospfd,
]


def setup_module(mod):
Expand Down
6 changes: 5 additions & 1 deletion tests/topotests/bfd_topo1/test_bfd_topo1.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@
from lib.topogen import Topogen, TopoRouter, get_topogen
from lib.topolog import logger

pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bfdd, pytest.mark.bgpd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bfdd,
pytest.mark.bgpd,
]


def setup_module(mod):
Expand Down
7 changes: 6 additions & 1 deletion tests/topotests/bfd_topo2/test_bfd_topo2.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@
from lib.topogen import Topogen, TopoRouter, get_topogen
from lib.topolog import logger

pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bfdd, pytest.mark.bgpd, pytest.mark.ospfd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bfdd,
pytest.mark.bgpd,
pytest.mark.ospfd,
]


def setup_module(mod):
Expand Down
6 changes: 5 additions & 1 deletion tests/topotests/bfd_topo3/test_bfd_topo3.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@
from lib.topogen import Topogen, TopoRouter, get_topogen
from lib.topolog import logger

pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bfdd, pytest.mark.bgpd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bfdd,
pytest.mark.bgpd,
]


def setup_module(mod):
Expand Down
6 changes: 5 additions & 1 deletion tests/topotests/bfd_vrf_topo1/test_bfd_vrf_topo1.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@

# Required to instantiate the topology builder class.

pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bfdd, pytest.mark.bgpd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bfdd,
pytest.mark.bgpd,
]


def build_topo(tgen):
Expand Down
6 changes: 5 additions & 1 deletion tests/topotests/bfd_vrflite_topo1/test_bfd_vrflite_topo1.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@

# Required to instantiate the topology builder class.

pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bfdd, pytest.mark.bgpd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bfdd,
pytest.mark.bgpd,
]


def build_topo(tgen):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
from lib.topolog import logger
from lib.checkping import check_ping

pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bgpd, pytest.mark.isisd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bgpd,
pytest.mark.isisd,
]


def build_topo(tgen):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@
from lib.bgp import verify_bgp_convergence, verify_bgp_rib, create_router_bgp, clear_bgp
from lib.topojson import build_config_from_json

pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bgpd, pytest.mark.staticd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bgpd,
pytest.mark.staticd,
]

# Reading the data from JSON File for topology creation
topo = None
Expand Down
6 changes: 5 additions & 1 deletion tests/topotests/bgp_as_allow_in/test_bgp_as_allow_in.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@
)
from lib.topojson import build_config_from_json

pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bgpd, pytest.mark.staticd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bgpd,
pytest.mark.staticd,
]

# Global variables
BGP_CONVERGENCE = False
Expand Down
6 changes: 5 additions & 1 deletion tests/topotests/bgp_auth/test_bgp_auth1.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@
)
from lib.topogen import Topogen, TopoRouter, get_topogen

pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bgpd, pytest.mark.ospfd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bgpd,
pytest.mark.ospfd,
]

CWD = os.path.dirname(os.path.realpath(__file__))

Expand Down
6 changes: 5 additions & 1 deletion tests/topotests/bgp_auth/test_bgp_auth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@
)
from lib.topogen import Topogen, TopoRouter, get_topogen

pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bgpd, pytest.mark.ospfd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bgpd,
pytest.mark.ospfd,
]

CWD = os.path.dirname(os.path.realpath(__file__))

Expand Down
6 changes: 5 additions & 1 deletion tests/topotests/bgp_auth/test_bgp_auth3.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@
)
from lib.topogen import Topogen, TopoRouter, get_topogen

pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bgpd, pytest.mark.ospfd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bgpd,
pytest.mark.ospfd,
]

CWD = os.path.dirname(os.path.realpath(__file__))

Expand Down
6 changes: 5 additions & 1 deletion tests/topotests/bgp_auth/test_bgp_auth4.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@
)
from lib.topogen import Topogen, TopoRouter, get_topogen

pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bgpd, pytest.mark.ospfd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bgpd,
pytest.mark.ospfd,
]

CWD = os.path.dirname(os.path.realpath(__file__))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@
from lib.topojson import build_config_from_json
from lib.topolog import logger

pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bgpd, pytest.mark.staticd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bgpd,
pytest.mark.staticd,
]


# Global Variable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@
from lib.topogen import Topogen, TopoRouter, get_topogen
from lib.common_config import kill_router_daemons, step

pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bfdd, pytest.mark.bgpd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bfdd,
pytest.mark.bgpd,
]


def build_topo(tgen):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@
from lib.topogen import Topogen, TopoRouter, get_topogen
from lib.common_config import kill_router_daemons, step

pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bfdd, pytest.mark.bgpd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bfdd,
pytest.mark.bgpd,
]


def build_topo(tgen):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@
from lib.topojson import build_config_from_json
from copy import deepcopy

pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bgpd, pytest.mark.staticd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bgpd,
pytest.mark.staticd,
]


# Global variables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@
)
from lib.topojson import build_config_from_json

pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bgpd, pytest.mark.staticd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bgpd,
pytest.mark.staticd,
]


# Global variables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@
)


pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bgpd, pytest.mark.staticd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bgpd,
pytest.mark.staticd,
]

# Save the Current Working Directory to find configuration files.
CWD = os.path.dirname(os.path.realpath(__file__))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@
)


pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bgpd, pytest.mark.staticd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bgpd,
pytest.mark.staticd,
]

# Save the Current Working Directory to find configuration files.
CWD = os.path.dirname(os.path.realpath(__file__))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@
check_router_status,
)

pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bgpd, pytest.mark.staticd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bgpd,
pytest.mark.staticd,
]

# Save the Current Working Directory to find configuration files.
CWD = os.path.dirname(os.path.realpath(__file__))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@
check_router_status,
)

pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bgpd, pytest.mark.staticd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bgpd,
pytest.mark.staticd,
]

# Save the Current Working Directory to find configuration files.
CWD = os.path.dirname(os.path.realpath(__file__))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@
sys.path.append(os.path.join(CWD, "../"))
sys.path.append(os.path.join(CWD, "../lib/"))

pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bgpd, pytest.mark.staticd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bgpd,
pytest.mark.staticd,
]

# Required to instantiate the topology builder class.

Expand Down
6 changes: 5 additions & 1 deletion tests/topotests/bgp_distance_change/test_bgp_admin_dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@
# Global variables
topo = None
bgp_convergence = False
pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bgpd, pytest.mark.staticd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bgpd,
pytest.mark.staticd,
]

NETWORK = {
"ipv4": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@
# Global variables
topo = None
bgp_convergence = False
pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bgpd, pytest.mark.staticd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bgpd,
pytest.mark.staticd,
]

NETWORK = {
"ipv4": [
Expand Down
6 changes: 5 additions & 1 deletion tests/topotests/bgp_ecmp_topo2/test_ebgp_ecmp_topo2.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@
from lib.topojson import build_config_from_json


pytestmark = [pytest.mark.random_order(disabled=True), pytest.mark.bgpd, pytest.mark.staticd]
pytestmark = [
pytest.mark.random_order(disabled=True),
pytest.mark.bgpd,
pytest.mark.staticd,
]


# Global variables
Expand Down
Loading

0 comments on commit 4c812c7

Please sign in to comment.