dativebase / old-pyramid

Online Linguistic Database (OLD)
http://www.onlinelinguisticdatabase.org/
8 stars 1 forks source link

Get unit/functional tests to pass (locally and on Travis CI) #9

Closed jrwdunham closed 6 years ago

jrwdunham commented 6 years ago

This PR should make the functional tests pass. To run the tests:

$ tox -e py34

To run the tests with python 3.5 or 3.6:

$ tox -e py35
$ tox -e py36

Note that MySQL 5.6 or greater is required and the database must still be created first:

mysql> CREATE DATABASE oldtests
    DEFAULT CHARACTER SET utf8
    DEFAULT COLLATE utf8_bin;
mysql> CREATE USER 'old'@'localhost' IDENTIFIED BY 'demo';
mysql> GRANT ALL PRIVILEGES ON oldtests.* TO 'old'@'localhost';

This PR also adds tox commands for linting with Pylint, but these currently fail (see https://github.com/dativebase/old-pyramid/issues/8). To lint with pylint, run any of these commands:

$ tox -e py35-pylint
$ tox -e py35-pylint
$ tox -e py36-pylint

Fixes #6