Commit Graph
4 Commits
Author SHA1 Message Date
Nicola Soranzo 721a4656d9 pytest: disable test collection of classes starting with Test
Fix warnings like:

```
/home/travis/build/galaxyproject/galaxy/lib/galaxy/tools/verify/test_data.py:29: PytestWarning: cannot collect test class 'TestDataResolver' because it has a __init__ constructor
  class TestDataResolver(object):
```

appearing e.g. in https://travis-ci.org/galaxyproject/galaxy/jobs/428114139 .

See pytest documentation:
https://docs.pytest.org/en/latest/reference.html#confval-python_classes
2018-09-17 12:01:14 +01:00
mvdbeek 1c64cdd674 Use pytest to run unit and doctests 2018-08-25 14:17:58 +02:00
mvdbeek 300ab73c10 Mark skipped tests instead of not collecting them
Also marks tests as tool or data_manager, so `pytest -m
<tool|data_manager>` can be used to select a subset of tests.
2018-08-25 14:17:00 +02:00
mvdbeek bd92136841 Setup pytest python3 API testing 2018-08-10 22:08:15 +02:00