summaryrefslogtreecommitdiff
path: root/conftest.py
Commit message (Collapse)AuthorAgeFilesLines
* Add compatibility against Pytest 5.4+Stanislav Levin2020-08-051-2/+8
| | | | | | | | | | | | | | The direct construction of nodes is deprecated since Pytest 5.4 [0]: > The construction of nodes now should use the named constructor from_parent. This limitation in api surface intends to enable better/simpler refactoring of the collection tree. This means that instead of MyItem(name="foo", parent=collector, obj=42) one now has to invoke MyItem.from_parent(collector, name="foo"). [0]: https://docs.pytest.org/en/stable/deprecations.html#node-construction-changed-to-node-from-parent Fixes: https://github.com/Kronuz/pyScss/issues/407 Signed-off-by: Stanislav Levin <slev@altlinux.org>
* Better handle running the tests without PIL installed.Eevee (Alex Munroe)2014-10-171-11/+23
|
* Experiment with porting path handling to use pathlib.Eevee (Alex Munroe)2014-10-061-8/+12
| | | | | The biggest impetus here is to allow Django integration without having to copy and paste massive piles of code.
* Add some helpers for doing simple compilations.Eevee (Alex Munroe)2014-08-281-6/+15
| | | | | | | Port the file tests and the "xfail" missing import test to use them. Also: current directory is no longer in the search path by default, but compile_file() adds the given file's containing directory.
* Don't show py.test stuff in the traceback for file tests.Eevee (Alex Munroe)2014-08-271-1/+5
|
* Reduce tool's reliance on config.LOAD_PATHS.Eevee (Alex Munroe)2014-08-271-0/+1
|
* Revamp py.test's handling of test files.Eevee (Alex Munroe)2014-08-261-8/+102
| | | | | | | | | | | | | | Each .scss file is now its own test -- you can run them directly, with `py.test scss/tests/files/foo/bar.scss`, or use wildcards, or specify a partial directory, or whatever. Accordingly, `test_files.py` is gone, as is the `--test-file-filter` option that was so cumbersome I never actually used it. Regressions: - xfail is no longer supported. - Ruby tests are now not collected at all, rather than marked as skipped.
* Make py.test have reasonable default behavior.Eevee (Alex Munroe)2013-08-161-1/+7
| | | | | - Tests ported from Ruby and sassc are skipped by default. - New xfail directory for test files known to be broken.
* Add py.test wizardry for running a subset of file tests. Fixes #134.Eevee2013-05-231-0/+16