-
Notifications
You must be signed in to change notification settings - Fork 10
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 #23 from pllim/commtest
Commissioning tests
- Loading branch information
Showing
26 changed files
with
6,221 additions
and
2 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 |
---|---|---|
|
@@ -15,6 +15,8 @@ __pycache__ | |
htmlcov | ||
.coverage | ||
MANIFEST | ||
*.html | ||
assets | ||
|
||
# Sphinx | ||
docs/api | ||
|
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
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,41 @@ | ||
# Licensed under a 3-clause BSD style license - see LICENSE.rst | ||
"""This sub-package is for commisioning tests. | ||
.. note:: | ||
Tests require ASTROLIB PYSYNPHOT to be installed. | ||
Specifically, install the version to be compared against ``stsynphot``. | ||
To run only the commissioning tests from source checkout:: | ||
cd ../.. | ||
python setup.py test -P commissioning --remote-data --args="--slow" | ||
Like above, but also use ``pytest-html`` plugin for a detail HTML report:: | ||
python setup.py test -P commissioning --remote-data \ | ||
--args="--slow --html=/full/path/report.html" | ||
To generate the HTML report using ``py.test`` directly:: | ||
py.test stsynphot/commissioning/tests/ --remote-data \ | ||
--slow --html=report.html | ||
To run only the commissioning tests from a Python session:: | ||
>>> import stsynphot | ||
>>> stsynphot.test('commissioning', remote_data=True, args='--slow') | ||
Like above, but also use ``pytest-html`` plugin for a detail HTML report:: | ||
>>> stsynphot.test('commissioning', remote_data=True, | ||
... args='--slow --html="report.html"') | ||
To rerun only failed tests from the last run, add ``--lf`` in the list of | ||
``args`` above. This option requires ``pytest-cache`` (enabled by default) | ||
and is useful for debugging. | ||
""" | ||
from __future__ import absolute_import, division, print_function | ||
|
||
from . import utils # noqa |
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,9 @@ | ||
# Licensed under a 3-clause BSD style license - see LICENSE.rst | ||
|
||
|
||
def get_package_data(): | ||
return {'stsynphot.commissioning.tests': ['data/*']} | ||
|
||
|
||
def requires_2to3(): | ||
return False |
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 @@ | ||
# Licensed under a 3-clause BSD style license - see LICENSE.rst | ||
"""Commisioning tests to ensure ``stsynphot`` is a valid replacement for | ||
ASTROLIB PYSYNPHOT.""" |
Oops, something went wrong.