Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from spyder-ide/feature/move-tests
PR: Move tests to module so they can be run when installed
- Loading branch information
Showing
12 changed files
with
37 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"qtpy/tests/test_patch_qcombobox.py": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,5 +35,5 @@ install: | |
build: false | ||
|
||
test_script: | ||
- "%CMD_IN_ENV% py.test" | ||
- "%CMD_IN_ENV% python qtpy/tests/runtests.py" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
# ---------------------------------------------------------------------------- | ||
# Copyright © 2015- The Spyder Development Team | ||
# | ||
# Licensed under the terms of the MIT License | ||
# ---------------------------------------------------------------------------- | ||
|
||
"""File for running tests programmatically.""" | ||
|
||
# Standard library imports | ||
import sys | ||
|
||
# Third party imports | ||
import qtpy # to ensure that Qt4 uses API v2 | ||
import pytest | ||
|
||
|
||
def main(): | ||
"""Run pytest tests.""" | ||
errno = pytest.main(['-x', 'qtpy', '-v', '-rw', '--durations=10', | ||
'--cov=qtpy', '--cov-report=term-missing']) | ||
sys.exit(errno) | ||
|
||
if __name__ == '__main__': | ||
main() |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Empty file.