Skip to content
Snippets Groups Projects
Commit 863e26eb authored by Hakan Calim's avatar Hakan Calim Committed by Neda Moeini
Browse files

NAT-329 reformatet files

parent 712f96a5
No related branches found
No related tags found
1 merge request!122Feature/nat 329 interface names should validated 3
......@@ -8,7 +8,7 @@ from gso.schedules.scheduling import scheduler
@pytest.fixture(scope="module")
def validate_subscriptions():
from gso.schedules.validate_subscriptions import validate_subscriptions as vs # noqa: PLC0415
from gso.schedules.validate_subscriptions import validate_subscriptions as vs
return vs
......
......@@ -7,10 +7,10 @@ class MockedNetboxClient:
def get_device_by_name(self):
return self.BaseMockObject(id=1, name="test")
def get_available_lags(self) -> list[str]: # noqa: PLR6301
def get_available_lags(self) -> list[str]:
return [f"LAG{lag}" for lag in range(1, 5)]
def get_available_interfaces(self): # noqa: PLR6301
def get_available_interfaces(self):
interfaces = []
for interface in range(5):
interface_data = {
......@@ -30,14 +30,14 @@ class MockedNetboxClient:
def reserve_interface(self):
return self.BaseMockObject(id=1, name="test")
def allocate_interface(self): # noqa: PLR6301
def allocate_interface(self):
return {"id": 1, "name": "test"}
def free_interface(self):
return self.BaseMockObject(id=1, name="test")
def detach_interfaces_from_lag(self): # noqa: PLR6301
def detach_interfaces_from_lag(self):
return None
def delete_interface(self): # noqa: PLR6301
def delete_interface(self):
return None
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