Skip to content

Test markers - #37

Merged
eteq merged 3 commits into
astropy:masterfrom
jiffyclub:test-markers
Oct 28, 2011
Merged

eteq merged 3 commits into
astropy:masterfrom
jiffyclub:test-markers

Conversation

@jiffyclub

Copy link
Copy Markdown
Contributor

I've added a couple lines to the testing guidelines describing the remote_data decorator/flag. Also mention the __init__.py files in tests directories.

I added an__init__.py file to the tests/tests directory and changed imports in the test tests to relative imports.

…tor/flag. Also added a line directing developers to include __init__.py files in tests directories.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also note here that if you run py.test directly (rather than through the testing function), the remote_data will be run, and you have to do py.test -k -remote_data to get it to not happen.

@eteq

eteq commented Oct 28, 2011

Copy link
Copy Markdown
Member

Looks good to me other than the one inline comment I had.

eteq added a commit that referenced this pull request Oct 28, 2011
Improved documentation on use of remote_data test markers.
@eteq
eteq merged commit e72322b into astropy:master Oct 28, 2011
@jiffyclub

Copy link
Copy Markdown
Contributor Author

Updated with how to skip @remote_data tests from the command line.

keflavich pushed a commit to keflavich/astropy that referenced this pull request Oct 9, 2013
Improved documentation on use of remote_data test markers.
jeffjennings pushed a commit to jeffjennings/astropy that referenced this pull request Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants