Loading src/tests/test_nbi_processor.py +3 −2 Original line number Diff line number Diff line Loading @@ -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": [{}]}, } Loading Loading @@ -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) Loading Loading
src/tests/test_nbi_processor.py +3 −2 Original line number Diff line number Diff line Loading @@ -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": [{}]}, } Loading Loading @@ -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) Loading