1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-23 22:44:03 +00:00

7 Commits

Author SHA1 Message Date
Julia Medina
a47859540a Don't collect tests by their class name 2015-05-04 18:10:04 -03:00
Julia Medina
c2d716807a Use LogCapture in testfixtures package for tests
This allows to remove `get_testlog` helper, `flushLoggedErrors` from
twisted.trial.unittest.TestCase and Twisted log observers created for
each test on conftest.py.
2015-04-22 17:24:40 -03:00
Daniel Graña
70ee66ba0c Collect the list of packages not working on python3 2014-07-31 14:06:34 -03:00
Daniel Graña
eb1cf303d3 use pytest.ini to enable twisted plugin 2014-07-30 19:45:08 -03:00
Mikhail Korobov
c3426e952b TST fix tests that became broken after adding top-level imports and switching to py.test.
py.test replaces AssertionError exception with its own subclass in an import hook.
For some reason when top-level shortcuts were added "except AssertionError" in
contracts.__init__ meant "except py.test AssertionError" while scrapy.exceptions.ContractFail
was still a subclass of a builtin AssertionError, so Contracts reported errors
instead of failures and this made tests in test_contracts.py fail.

For now - just disable fancy py.test asserts.
2014-04-15 06:54:14 +06:00
Julia Medina
560a84657c Support doctest and __init__.py test discover in pytest 2014-04-04 21:43:12 -03:00
Julia Medina
20b4c8f3ea Trial functionality for running tests with pytest
* Change current dir to tmp dir on each test run
  * Log twisted with test.log
2014-04-04 21:42:00 -03:00