Skip to content
Snippets Groups Projects
Commit 6a56e70d authored by Neda Moeini's avatar Neda Moeini
Browse files

Add unittest for create L2Circuit WF.

parent 906939de
No related branches found
Tags 2.0
1 merge request!307Feature/l2circuits
......@@ -138,6 +138,11 @@ class FakerProvider(BaseProvider):
def vlan_id(self) -> int:
return self.generator.random_int(min=1, max=4095)
def bandwidth(self) -> str:
bandwidth_value = self.generator.random_int(1, 1000)
unit = self.generator.random_choices(elements=("K", "M", "G", "T"))[0]
return f"{bandwidth_value}{unit}"
@pytest.fixture(scope="session")
def faker() -> Faker:
......
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