kytos / mef_eline

Kytos NApp to create and manage point-to-point L2 circuits
https://napps.kytos.io/kytos/mef_eline
MIT License
3 stars 14 forks source link

Fix mef-eline tests with scrutinizer #106

Closed rmotitsuki closed 5 years ago

rmotitsuki commented 5 years ago

Fix unit tests failing with Scrutinizer

rmotitsuki commented 5 years ago

Running the command tox generate multiple errors like:

  File "/home/scrutinizer/build/tests/models/test_evc_base.py", line 11, in <module>
    from napps.kytos.mef_eline.models import EVC
ModuleNotFoundError: No module named 'napps'
rmotitsuki commented 5 years ago

Tried adding to tox.ini the following lines.

setenv=
   PYTHONPATH = {toxworkdir}/py36/var/lib/kytos/:{envdir}

It worked in my machine, but failed in the @ajoaoff machine. I will create a new virtual environment to check the solution in a clean environment.

rmotitsuki commented 5 years ago

I missed out a piece of information in my comment. The line must be included in [testenv] section. @ajoaoff tested successfully now.

hdiogenes commented 5 years ago

@rmotitsuki's solution worked. Closing the issue.