Commit Graph

4 Commits

Author SHA1 Message Date
Miguel Angel Ajo 222bb2a984 Create and enable funcional testing
The funcional testing will include, per case, input files
and output files, plus a simple bash script which makes
sure the output stays as it should, and otherwise shows
a diff and fails the case.

Change-Id: I4c5f1143188f49c6a1448ca8918ab8b30710b865
2018-10-15 08:10:16 +00:00
Miguel Angel Ajo 20645e4f9a Making sure we're ready for python3
Adds py37 to the env list and switches pep8 python to
python3, including necessary changes to make pylint
and pep8 checks happy in python3:

* Unpins pylint, as 1.4.5 explodes (exception) when trying
  to check our code.

* Unpins flake8-import-order from an old version.

* Stops making use of the builtin cmp function, and replaces
  it with the recommended (a > b) - (a < b).

* Disables one py3 specific warning, since it's still necessary
  for python2 (useless-object-inheritance)

* Removes a non existing argument in netprobe parser (version).

* Inserts an additional blank line between __future__ imports
  and stdlib imports.

Change-Id: If4a45108fe93080f9967e2ac26d681b8dd5c7fc2
2018-10-03 15:10:59 +02:00
Miguel Angel Ajo e08b086914 Enable py27 and py35 unit testing
This also includes a couple of basic unit tests as proof
that this is working.

Change-Id: Iff8241b4bdfd3c97319198873527911e8ed318e1
2018-03-01 17:14:45 +00:00
Miguel Angel Ajo 5193d0010e Setup tox.ini for unit and pep8 testing
This patch includes fixes to all the pep8 warnings.

Change-Id: I4f87e1428258824509d2d83879312a1f0dff0a8a
2018-02-28 23:19:52 +00:00