Clean up tests and add Python3 to Travis.

- Clean up spec_syntax tests: don't dependend on DB order.
- spec_syntax hash parsing tests were strongly dependent on the order the
  DB was traversed.
- Tests now specifically grab the specs they want from the mock DB.
- Tests are more readable as a result.

- Add Python3 versions to Travis tests.
This commit is contained in:
Todd Gamblin
2017-03-26 18:02:56 -07:00
parent b9ee86cac9
commit 3f21f2b088
3 changed files with 166 additions and 84 deletions

View File

@@ -22,6 +22,22 @@ matrix:
os: linux
language: python
env: TEST_SUITE=unit
- python: '3.3'
os: linux
language: python
env: TEST_SUITE=unit
- python: '3.4'
os: linux
language: python
env: TEST_SUITE=unit
- python: '3.5'
os: linux
language: python
env: TEST_SUITE=unit
- python: '3.6'
os: linux
language: python
env: TEST_SUITE=unit
- python: '2.7'
os: linux
language: python
@@ -45,6 +61,7 @@ addons:
apt:
packages:
- gfortran
- mercurial
- graphviz
# Work around Travis's lack of support for Python on OSX
@@ -60,7 +77,6 @@ install:
- pip install --upgrade codecov
- pip install --upgrade flake8
- pip install --upgrade sphinx
- pip install --upgrade mercurial
before_script:
# Need this for the git tests to succeed.