Loading src/nbi/tests/test_ietf_network.py +8 −2 Original line number Diff line number Diff line Loading @@ -12,14 +12,20 @@ # See the License for the specific language governing permissions and # limitations under the License. import deepdiff, json, logging, operator import deepdiff, json, logging, operator, os from typing import Dict from common.Constants import DEFAULT_CONTEXT_NAME from common.proto.context_pb2 import ContextId from common.tools.descriptor.Loader import DescriptorLoader, check_descriptor_load_results, validate_empty_scenario from common.tools.descriptor.Loader import ( DescriptorLoader, check_descriptor_load_results, validate_empty_scenario ) from common.tools.object_factory.Context import json_context_id from context.client.ContextClient import ContextClient from nbi.service.rest_server import RestServer # Explicitly state NBI to use PyangBind Renderer for this test os.environ['IETF_NETWORK_RENDERER'] = 'PYANGBIND' from .PrepareTestScenario import ( # pylint: disable=unused-import # be careful, order of symbols is important here! do_rest_get_request, mock_service, nbi_service_rest, osm_wim, context_client Loading Loading
src/nbi/tests/test_ietf_network.py +8 −2 Original line number Diff line number Diff line Loading @@ -12,14 +12,20 @@ # See the License for the specific language governing permissions and # limitations under the License. import deepdiff, json, logging, operator import deepdiff, json, logging, operator, os from typing import Dict from common.Constants import DEFAULT_CONTEXT_NAME from common.proto.context_pb2 import ContextId from common.tools.descriptor.Loader import DescriptorLoader, check_descriptor_load_results, validate_empty_scenario from common.tools.descriptor.Loader import ( DescriptorLoader, check_descriptor_load_results, validate_empty_scenario ) from common.tools.object_factory.Context import json_context_id from context.client.ContextClient import ContextClient from nbi.service.rest_server import RestServer # Explicitly state NBI to use PyangBind Renderer for this test os.environ['IETF_NETWORK_RENDERER'] = 'PYANGBIND' from .PrepareTestScenario import ( # pylint: disable=unused-import # be careful, order of symbols is important here! do_rest_get_request, mock_service, nbi_service_rest, osm_wim, context_client Loading