Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/astropy/pytest-openfiles

Pytest plugin to check for files left open at the end of a test run
https://github.com/astropy/pytest-openfiles

move creation of test's temporary cache/config directory to a py.test fixture.

Requires py.test > 2.3!

42bb77b94c0c86bbfe20cf8e96953ee962952f1d authored about 12 years ago by Erik Tollerud <[email protected]>
Updated get_data -> get_pkg_data and fixed failing tests

6b80924dbdeed98839913c5fc9724c2648a6a864 authored about 12 years ago by Thomas Robitaille <[email protected]>
added test_imports to make sure all packages successfully import

970fda16a42d913fcd2ea476746d7e258aa0dea2 authored about 12 years ago by Erik Tollerud <[email protected]>
Rename astropy.io.vo to astropy.io.votable

e908e0a5ce6d0a09b7584a55d1ba1e897cca30ec authored about 12 years ago by Michael Droettboom <[email protected]>
Whitespace

7372e2a2efcc29f996022a090c90f8491ffce72c authored about 12 years ago by Thomas Robitaille <[email protected]>
Moved compatibility assert_allclose to astropy.tests.compat to avoid importing Numpy when running egg_info.

5defb31408a15d513908e06ec9be67c0e28dcb2b authored about 12 years ago by Thomas Robitaille <[email protected]>
Fixing for Python 3

46a615fa7c8b4dcb2b1425d22274826d7503bef9 authored over 12 years ago by Michael Droettboom <[email protected]>
Remove redundant import

1419c1b7f5a127107e7e837fbd065be2370575ee authored over 12 years ago by Michael Droettboom <[email protected]>
Provide a version of assert_allclose, since it doesn't exist in Numpy 1.4.

4e73e35e80cd233b96f3c347980cfe4637ccf855 authored over 12 years ago by Michael Droettboom <[email protected]>
Fix the `exception_logging_enabled` tests under IPython

3c52ecdf4d1768c36c31eaaac0a23e14dd47d108 authored over 12 years ago by Michael Droettboom <[email protected]>
typo fix

4695825e9710936152963c077c27c77aec6b2a73 authored over 12 years ago by Erik Tollerud <[email protected]>
typo fix

fee4bfa3a8c527147509379a38c8bab81d38927e authored over 12 years ago by Erik Tollerud <[email protected]>
updated config/cache dir test settings to work even if tests are run via astropy.test()

cf934e23cce5408d0f4aecf5613a5e0ecd17b4ab authored over 12 years ago by Erik Tollerud <[email protected]>
added override for config and cache dirs in test command

9082d8db09b58c169924712ba41b6587f8514bd3 authored over 12 years ago by Erik Tollerud <[email protected]>
moved config.logging_helper to logger and tests

4a0b92093953d7ae2285e02b461d375733f1caaa authored over 12 years ago by Erik Tollerud <[email protected]>
Add conftest.py to list of ignored files for coverage

3f2ac0bdb9ca225c1ce867f8d28b07ec9b3aff0c authored over 12 years ago by Michael Droettboom <[email protected]>
Close the coveragerc tmp file if it happens to be open.

8e7c972657c42c5790fdd8e0670f274ad28979b1 authored over 12 years ago by Michael Droettboom <[email protected]>
Remove spurious line

a10c4d00a6ba96608fdaa9b5d30cb8a850dfa980 authored over 12 years ago by Michael Droettboom <[email protected]>
Remove the use_system_pytest ConfigurationItem, because it was pulling in a bunch of code before coverage testing time.

e085f829e187a2b00eb72a65c0736ee33aa08036 authored over 12 years ago by Michael Droettboom <[email protected]>
Allow for marking blocks of code that are specifically for Python 2.x and 3.x to the coverage system.

193c896f168ae641fb203fe641eec8d5976732cf authored over 12 years ago by Michael Droettboom <[email protected]>
Add some exclude_lines to coveragerc

a183253244693e2c4c927f1c067f4d4c66a036c4 authored over 12 years ago by Michael Droettboom <[email protected]>
Add some more ommissions to coveragerc, at @iguananaut's suggestion.

43402ed5a07d8908641bb2be6ce54c2edbe4e7aa authored over 12 years ago by Michael Droettboom <[email protected]>
Fix the problem where any modules that were imported before py.test was started would not be labeled for coverage. This is done by setting a flag in builtins `_ASTROPY_TEST_` which, when True, tells helper.py not to import anything (such as `astropy.config`) at import time.

56bf2af68a645c2a155414c0577350d7c2ce169d authored over 12 years ago by Michael Droettboom <[email protected]>
Add astropy/utils/compat/* to list of omitted files for coverage testing

fe3b511ac6433bf14b4f90c21123c54e31bb1626 authored over 12 years ago by Michael Droettboom <[email protected]>
Fix how this works. coveragerc is now installed alongside astropy. That is the only reliable way I can think of to get `import astropy; astropy.test(coverage=True)` to work.

When running `python setup.py test --coverage`, the `htmlcov` directory ends up in `build/lib......

5d1ca41844f27baf6607835f933ca7ac3cc42a14 authored over 12 years ago by Michael Droettboom <[email protected]>
Adds a --coverage option to "setup.py test" to generate a test coverage report.

Uses the coveragerc that's now included in the source (based on an e-mail from @iguananaut).

ced3f251c0c943060efd038f15ab08eec7c9c561 authored over 12 years ago by Michael Droettboom <[email protected]>
Move the docstring from tests/helper.py:TestRunner.run_tests to the user-facing function astropy.test().

ae660216d90ed4a245e2ba7543ba0701a116bd0e authored over 12 years ago by Michael Droettboom <[email protected]>
Improve time and memory footprint of `import astropy`. `py.test` no longer is imported every time -- only when the tests are actually run.

bb72a758d34f245d50cacce15d74fea4c0d54692 authored over 12 years ago by Michael Droettboom <[email protected]>
adjusted _in_build and _in_setup to _ASTROPY_SETUP_

8f0be13a325e0ed47e213f39306e86896caa2c52 authored over 12 years ago by Erik Tollerud <[email protected]>
fixes test helper to not import astropy.config if it's invoked from setup.py

9a518937cfa203fc9f847020610057da412464ab authored over 12 years ago by Erik Tollerud <[email protected]>
added -d/--pdb option to test command

821132fb67a9c62496518932360c6d505d5fee3a authored over 12 years ago by Erik Tollerud <[email protected]>
This should fix #147.

The real explanation comes from the Python 3.2 docs for the subprocess module:

"If close_fds is...

9ba1ad77b51ef6ff7380128f17aa5847bc754f7a authored almost 13 years ago by Erik Bray <[email protected]>
Fixes path arguments to the test command on Windows. When pytest.main() is passed the arguments as it string, it runs that string through shlex.split(). However, it does not use the 'posix' argument to shlex--or more specifically it doesn't set it to false for Windows as I did here. That causes Windows paths to be mangled. So we can fix that on our end.

d7ab32fc0528d781ae99c534ca655d3c8f79817e authored almost 13 years ago by Erik Bray <[email protected]>
Even simpler and more bullet-proof solution -- just run build out-of-place. That's all we need.

ee3642ac1e563234b2eada734845b58f61ebb212 authored about 13 years ago by Michael Droettboom <[email protected]>
Test what will be installed, not the source tree.

3500a59d8bb46d45bc5d85edfa273fee7d26aa18 authored about 13 years ago by Michael Droettboom <[email protected]>
Import bundled pytest unless the user has specified otherwise with a config option.

87fb3c88f5efea6dccb65caf407c80f6d6ef7440 authored about 13 years ago by Matt Davis <[email protected]>
Added license and docstring to pytest_plugins.py and removed import of __path__ in __init__.py.

28c1ccf99e9ab7a333289fa013cf028eb856d132 authored about 13 years ago by Matt Davis <[email protected]>
Moved py.test plugins to astropy.tests.pytest_plugins and changed conftest.py to import everything from there.

7e397894604eff1bd01d0eccff39fc0555bafaba authored about 13 years ago by Matt Davis <[email protected]>
Moved setup_test_command to setup_helpers.py and made te

st variables in __init__.py less visible.

9fb31641a2ec3cca82ca06ab36cf09cfd0d3fc01 authored about 13 years ago by Matt Davis <[email protected]>
Modifed tests.helper so that the utilties defined within are generic and the actual package specific setup occurs in astropy.__init__.

491185ef246d36b06ac95ef98742390504914495 authored about 13 years ago by Matt Davis <[email protected]>
Merge pull request #84 from phn/version-info-in-pytest-header

Adds the astropy version and other information to the py.test output
header.

Resolved conflict ...

6a3f8f0c5a24069835c71c92383706147f43b6e9 authored about 13 years ago by Erik Tollerud <[email protected]>
fix in tests/helper.py to reflect remotedata->remote-data

0b1aea5ac6bfccb23a6af88473426147b40ebc9d authored about 13 years ago by Erik Tollerud <[email protected]>
Merge pull request #73 from eteq/config-pkg

Implementation of config package - includes both configuration file and data-access functionality.

909a3414bef5e1aa0e967f6a62585b1c82c50b7f authored about 13 years ago by Erik Tollerud <[email protected]>
Add astropy version and some other info to py.test output.

Infomartion added: version, package being tested, "special"
astropy options used. The last is cu...

78848f25188e94a9f5bb1e441e5a333503e93b37 authored about 13 years ago by Prasanth Nair <[email protected]>
Removed comment about the -p option for plugins in helper.py. The plugins are discovered in conftest.py.

59f5b993adb8147baa42cc0d7b7619ca3fa50875 authored about 13 years ago by Matt Davis <[email protected]>
Changed --remotedata option to --remote-data.

4a69592c8c98119e5aa613e30c4be4b5a4ebc923 authored about 13 years ago by Matt Davis <[email protected]>
Keep actual hook definitions in tests.helper but import them into conftest.py to get the same behavior.

e38eabd17bf95113d0696e42c834e9fde1d1be42 authored about 13 years ago by Matt Davis <[email protected]>
Moved py.test plugins to a root level conftest.py file. This wil be discovered by py.test when run from the command line so that it has the same behavior as astropy.test().

2ea6a0f351b52e4f3ae32941f136a5019680f854 authored about 13 years ago by Matt Davis <[email protected]>
Added some docstrings for previously un-documented modules/packages

b8e6ded27107f56ce06fa0f5a98ed1b38fc6dac7 authored about 13 years ago by Erik Tollerud <[email protected]>
Moved some docstrings before imports so they actually show up as docstrings

2bfd2d1e78807888ff5021ba19304b524a132c78 authored about 13 years ago by Erik Tollerud <[email protected]>
Merged pull request #60 from jiffyclub/test-pep8 with minor conflict fixes

25c1029cc18e775c9b8e916bc86b02c32ca3ea87 authored about 13 years ago by Erik Tollerud <[email protected]>
Various PEP8 fixes.

5a7de12359a7afa778cdcbef85f7d2d5386acf8f authored about 13 years ago by Michael Droettboom <[email protected]>
Added a test_path option to helper.run_tests that allows the user to specify a test location by path. This is an alternative to specifying tests by package and allows for the specification of single files. Can also be used via or .

b25649fc4ef5d66fe3ccc20a3a4d74c117cd0460 authored about 13 years ago by Matt <[email protected]>
Changed module to package in test helpers.

d06f790a73e0a2d353f43c529cbe8c491d30fbb0 authored about 13 years ago by Matt <[email protected]>
Add pep8 checking option, using the pytest-pep8 plugin, to astropy test helpers.

2a7c84b970c9ec133db02d412911d0a5b5e86098 authored about 13 years ago by Matt <[email protected]>
Return the error status code from `python setup.py test` so that it can more easily be used in a CI script.

7e5196fc5c57ddd5127389745954b1cbc266c4bd authored about 13 years ago by Michael Droettboom <[email protected]>
Putting the 'except SyntaxError' directly in the module won't do any good since the entire thing is parsed at import time. This is the right way to do this. And of course if and when we do add tests that need to be 2to3'd, if this test fails they're all going to fial too. But it's still nice to have...

227383794e9eec8fadfedc0f321b7f8b8f77afb3 authored about 13 years ago by Erik Bray <[email protected]>
Adds support for running the tests in Python 3 after they've been run through 2to3.

985741e1767c85fd3d10e94a370b6c04f222d7b1 authored about 13 years ago by Erik Bray <[email protected]>
doc updates based on some of the recently-added packages

931b1ec2fda3f5c5ee0b129ff154866af6b4da11 authored about 13 years ago by Erik Tollerud <[email protected]>
Forgot to pass the arguments to the original test function.

704a2db8ad95d1a45ffcf06db585b59e25a89a47 authored about 13 years ago by Erik Bray <[email protected]>
Fix the raises() decorator to support functions that take arguments (including methods, parametrized tests, etc).

55adf5bb68bcfd47c0ac65cb8470eb7b63bb8ffa authored about 13 years ago by Erik Bray <[email protected]>
added license comment at the top of all astropy source files

8d51bb42a77b85678ac4c5a7aceff289ac3ed8dc authored about 13 years ago by Erik Tollerud <[email protected]>
Added __init__.py to tests/tests and changed imports in test files to relative imports.

d1c07f9643ca987af36f01fd5ffb2728c50e58ef authored about 13 years ago by Matt Davis <[email protected]>
Run the tests in a separate process--this way they will work even if extension modules had to be built/rebuilt.

75b1e024c3d364862b7c62d92585271e07602fbd authored about 13 years ago by Erik Bray <[email protected]>
Adds a 'test' command to the setup.py (distribute comes with a test command but it doesn't work with py.test, so this replaces it outright). This also supports all the existing options to astropy.test() such as module and verbose.

1fe12bfa84c145c2fca2f10413878f99e34939bd authored about 13 years ago by Erik Bray <[email protected]>
Oops--fixed format string

dc70a3e5a8e3962511ccef4361c6313eb38a5f6d authored about 13 years ago by Erik Bray <[email protected]>
AstroPy -> Astropy in docstrings

e58574a3e24e4318be30dd8f6a593a1a7068c243 authored about 13 years ago by Erik Bray <[email protected]>
Put newline at end of test_skip_remote_data.py.

461c157909fbc6e322e0b91b29f7da40d4c4f2fc authored about 13 years ago by Matt <[email protected]>
White space fix.

2eb97affde903c49e9f9752742124f2ee86b4fcb authored about 13 years ago by Matt <[email protected]>
Changed skip tests decorator from @big_data to @remote_data so it's more explicit about what's being skipped and why.

513ec2da9f6e4306ef2f27daa82c5298e5ca65d2 authored about 13 years ago by Matt <[email protected]>
Changed name of test_skip_me.py to test_skip_remote_data.py.

45d4bf8e07165de68355d955dc608285952ba370 authored about 13 years ago by Matt <[email protected]>
Fixed tests_skip_remote_data.py to test_skip_remote_data.py so that py.test finds it.

e3e39e247ed4be2db2de3eaf90d1689d538d46ba authored about 13 years ago by Matt <[email protected]>
Modified test_skip_remote_data so that it fails if the test is somehow not skipped when remote_data=False. Test passes if called from the command line or if remote_data=True.

f595a19e1ae62be19c4b1c25e66e8564c50311d1 authored about 13 years ago by Matt <[email protected]>
Added tests/test_run_tests.py to astropy.tests module.

c110a5509681ea65faa688874c9367b0d42d72c3 authored about 13 years ago by Matt <[email protected]>
Added comments to test_run_tests.py.

f373052f4f833ff6ac640aaa792efdc2239818c8 authored about 13 years ago by Matt <[email protected]>
Added a test that should be skipped without the --runbigdata flag and run with it.

cf7543eb4cdfd0cf237acee04a00b0f0f0c76d39 authored about 13 years ago by Matt <[email protected]>
Added py.test plugins to tests/helper.py that add the --runbigdata command line option and for tests marked with @big_data (defined in helper.py) to be skipped unless the --runbigdata option is used. Updated run_tests to work with this new setup.

7e18840b6f607504fae5c01991be2d921fc4efac authored about 13 years ago by Matt <[email protected]>
Updated run_tests docstring with better explanation of the pastebin keyword.

6aa6dc2021c74a0badbb753b2400dc630f0cb2f2 authored about 13 years ago by Matt <[email protected]>
Changed 'elif pastebin' to 'elif pastebin is True' because any non-empty string will evaluate to True, which is not the behavior we want.

f2a8ca7f2b93d0484213d28ca8ddce88eb08e816 authored about 13 years ago by Matt <[email protected]>
Adding pytest marker and hooks to tests/helper.py to test the big-data test marking scheme.

88406951edf48483f094552c43fabfd31728bb38 authored about 13 years ago by Matt <[email protected]>
Don't import nose -- we're using py.test exclusively. Add a "raises" decorator to the test helpers. Closes #29.

f144e0d0b37f98ca88cd935a10e98dc5c47311b0 authored about 13 years ago by Michael Droettboom <[email protected]>
updated AstroPy to Astropy or astropy as appropriate

dbd5a77edb69bc64119d89fcd77d46997f69614c authored about 13 years ago by Erik Tollerud <[email protected]>
Fixed small bugs that prevented astropy from building with Python 3

c5d7fe6ba7bc2cc4e67fc0271767ec1b615325a9 authored about 13 years ago by Thomas Robitaille <[email protected]>
Added docstring to tests/helper.py run_tests function and removed unnecessary import of imp module.

526ec793fbc2090c2c0892b1b409c0938d69232f authored about 13 years ago by Matt Davis <[email protected]>
Changed the tests/helper.py module so that it makes available a pytest attribute. In the case when the user has pytest installed it will just point to that but when the user does not have pytest installed it will be a useable pytest imported from extern/pytest.py.

3a9e9127efa3ded677f450fe9c9eb0734662b2f3 authored about 13 years ago by Matt Davis <[email protected]>
Changed an Exception to ValueError

267c9879698aabd379220070de8c483c6392403b authored about 13 years ago by Thomas Robitaille <[email protected]>
Make pastebin=True default to pastebin=failed

188ccf973b9bf7ff65ba897e3a7145d5d91b22d3 authored about 13 years ago by Thomas Robitaille <[email protected]>
Added options to astropy.test() for passing to py.test (including arbitrary arguments, plugins, and more specific verbose and pastebin options)

c5bfdd0ee4699cc1799f5e5365ee851aa6eda6f9 authored about 13 years ago by Thomas Robitaille <[email protected]>
Changed runtests to run_tests.

64a78762ea8d7e8abe5adf1fd45ff70db8151ac2 authored about 13 years ago by Matt Davis <[email protected]>
Changed astropy/tests/helper.py imports to relative imports.

aeb049e21a722e57a746be33d77903352ec1ff57 authored about 13 years ago by Matt Davis <[email protected]>
Fixed use of module_path instead of module in astropy/tests/helper.py runtests function.

9190f28d4e1c5eacba3a2c3fd8deb8f3449461b8 authored about 13 years ago by Matt Davis <[email protected]>
Added runtests function to astropy/tests/helper.py for running specific tests. Will be imported in astropy/__init__.py as test.

33ed519a8eb01763c184a219b5acc75bfe96a959 authored about 13 years ago by Matt Davis <[email protected]>
Added import to astropy/__init__.py so that it has a 'test' function available. Modified the astropy/tests/helper.py runtests function so that it runs tests in the astropy installed location.

aeaad3b2de80ee769d82a308979858e24c1717d2 authored about 13 years ago by Matt Davis <[email protected]>
Added __init__.py to astropy/tests.

ba59d8ffa34f7a28c79a17d6a60b5a697e7842cb authored about 13 years ago by Matt Davis <[email protected]>
Added astropy/tests/helper.py, which can be used to invoke the pytest module installed with astropy in the event that a user wants to run tests and does not have py.test installed on their system.

a2f49e57972cea24705b607b30293e156910e836 authored about 13 years ago by Matt Davis <[email protected]>