Commit 1f4a598c authored by Javier Velázquez's avatar Javier Velázquez
Browse files

Fix minor bug in tests

parent 175b0079
Loading
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -93,8 +93,8 @@ def fake_template():
                    "description": "",
                    "slo-sle-template": "",
                    "sdps": {"sdp": [
                        {"service-match-criteria": {"match-criterion": [{}]}, "attachment-circuits": {"attachment-circuit": [{"sdp-peering": {}}]}},
                        {"service-match-criteria": {"match-criterion": [{}]}, "attachment-circuits": {"attachment-circuit": [{"sdp-peering": {}}]}}
                        {"service-match-criteria": {"match-criterion": [{"match-type":[{"type":""}]}]}, "attachment-circuits": {"attachment-circuit": [{"sdp-peering": {}}]}},
                        {"service-match-criteria": {"match-criterion": [{"match-type":[{"type":""}]}]}, "attachment-circuits": {"attachment-circuit": [{"sdp-peering": {}}]}}
                    ]},
                    "connection-groups": {"connection-group": [{}]},
                }
@@ -132,6 +132,7 @@ def test_nbi_processor_empty():
@patch("src.nbi_processor.translator.load_template")
def test_translator_basic(mock_load_template, gpp_intent, fake_template):
    mock_load_template.return_value = fake_template
    print(translator(gpp_intent, "subnetA"))
    result = translator(gpp_intent, "subnetA")

    assert isinstance(result, dict)