-
Notifications
You must be signed in to change notification settings - Fork 256
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 #279 from bashtage/test-pyargs
BLD: Use pyargs to test
- Loading branch information
Showing
3 changed files
with
24 additions
and
10 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
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 |
---|---|---|
@@ -1,3 +1,24 @@ | ||
import os | ||
import sys | ||
|
||
from arch.utility.cov import cov_nw | ||
|
||
__all__ = ['cov_nw'] | ||
PKG = os.path.dirname(os.path.dirname(__file__)) | ||
|
||
|
||
def test(extra_args=None): | ||
try: | ||
import pytest | ||
except ImportError: | ||
raise ImportError("Need pytest to run tests") | ||
cmd = [] | ||
if extra_args: | ||
if not isinstance(extra_args, list): | ||
extra_args = [extra_args] | ||
cmd = extra_args | ||
cmd += [PKG] | ||
print("running: pytest {}".format(' '.join(cmd))) | ||
sys.exit(pytest.main(cmd)) | ||
|
||
|
||
__all__ = ['cov_nw', 'test'] |
This file was deleted.
Oops, something went wrong.