Skip to content
Snippets Groups Projects

Add unit tests for imported products

Merged Karel van Klink requested to merge feature/add-tests-for-imported-products into develop
All threads resolved!
4 files
+ 41
29
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -11,9 +11,9 @@ from test.workflows import (
)
@pytest.mark.workflow()
def test_create_imported_iptrunk_success(faker, nokia_router_subscription_factory):
input_data = {
@pytest.fixture()
def workflow_input_data(faker, nokia_router_subscription_factory):
return {
"partner": "GEANT",
"geant_s_sid": faker.geant_sid(),
"iptrunk_description": faker.sentence(),
@@ -36,7 +36,11 @@ def test_create_imported_iptrunk_success(faker, nokia_router_subscription_factor
"iptrunk_ipv4_network": faker.ipv4_network(max_subnet=31),
"iptrunk_ipv6_network": faker.ipv6_network(max_subnet=126),
}
result, _, _ = run_workflow("create_imported_iptrunk", [input_data])
@pytest.mark.workflow()
def test_create_imported_iptrunk_success(workflow_input_data):
result, _, _ = run_workflow("create_imported_iptrunk", [workflow_input_data])
state = extract_state(result)
imported_router = ImportedIptrunk.from_subscription(state["subscription_id"])
Loading