From 6a56e70df4c3121309fd5a0912fec91badf57119 Mon Sep 17 00:00:00 2001 From: Neda Moeini <neda.moeini@geant.org> Date: Mon, 4 Nov 2024 14:58:21 +0100 Subject: [PATCH] Add unittest for create L2Circuit WF. --- test/conftest.py | 5 +++++ test/workflows/l2_circuit/__init__.py | 0 2 files changed, 5 insertions(+) create mode 100644 test/workflows/l2_circuit/__init__.py diff --git a/test/conftest.py b/test/conftest.py index 8c8d246c..3211217a 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -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: diff --git a/test/workflows/l2_circuit/__init__.py b/test/workflows/l2_circuit/__init__.py new file mode 100644 index 00000000..e69de29b -- GitLab