Uploaded image for project: 'Optimization Framework'
  1. Optimization Framework
  2. OPTFRA-163

UnboundlocalError- variables throwing exception during tests.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • Beijing Release
    • Beijing Release
    • None

      While running tests related to translator.py, the variables nested and function are throwing Errors.

      Traceback (most recent call last):
      File "/home/otc/ONAP/has/conductor/.tox/cover/local/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
      return func(*args, **keywargs)
      File "conductor/tests/unit/controller/test_translator.py", line 200, in test_parse_optimization
      opt), expected_parse)
      File "conductor/controller/translator.py", line 766, in parse_optimization
      if not nested:
      UnboundLocalError: local variable 'nested' referenced before assignment

            dileep.ranganathan dileep.ranganathan
            dileep.ranganathan dileep.ranganathan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: