Commit Graph

4 Commits

Author SHA1 Message Date
albailey eafee58e62 Not require recreate of tox env when running tox
The upgrade test was written to copy a file required for
the test, but did not handle the file already being processed.
This fix adjusts the setup for the unit test to handle this
and allows the recreate to be removed, thus reducing designer
tox testing time (40 seconds down to 4 when re-running a single test)

This also aligns the version of hacking and pylint as the same as
other starlingx repos. A new pylint was released which was
breaking tox.

The code changes are to fix whitespace (rather than suppressing):
 E305 expected 2 blank lines after class or function definition
 E117 over-indented

Three new hacking warnings are being suppressed:
  W503 line break before binary operator
  W504  line break after binary operator
  W605 invalid escape sequence

Un-suppress these codes which are not broken in the code:
 E123 closing bracket does not match indentation of opening bracket
 E501 line too long (tox sets max length instead to a large val)
 F823 local variable referenced before assignment

yamllint 1.26.1 does not work with py2 or py3 in our env, so clamp it.

Story: 2008137
Task: 42200
Signed-off-by: albailey <Al.Bailey@windriver.com>
Change-Id: Ia623315c5f1a690d20f597242b7722601776f26d
2021-04-06 09:48:36 -05:00
Eric MacDonald af4f6aa83e Change nfv tox requirements for bashate version
Zuul is failing.
 Package 'bashate' requires a different Python: 2.7.17 not in '>=3.5'

nfv test-requirements.txt accepts any version of bashate greater
than 0.2 version. So the recent release of bashate 2.0.0 qualifies.
However, this new version only supports py3 which is not yet fully
supported by starlingx.

Ths update reduces the bashate version dependency to less than 1.0.0
so that the older 0.6 version that supports python 2.7 is used.

Change-Id: I415f011abb4931c30c5991c2f6fda7651ddd402a
Closes-Bug: 1869251
Signed-off-by: Eric MacDonald <eric.macdonald@windriver.com>
2020-03-30 15:08:16 +00:00
Al Bailey 597e7bb29b Adding py27 for nfv
Adds a py27 unit test target for nfv.
The unit tests for nfv were written using nose.

Change-Id: I001995be5f2af1d45242eb3c0e05e0615352b173
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
2018-07-10 10:18:28 -05:00
Dean Troyer 37f3cabe55 Add default test framework
Change-Id: I93ad513d5491cc4b3e1cba45ac82fd86a4815b26
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-06-11 18:53:08 -05:00