1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-03-01 09:35:34 +00:00

3 Commits

Author SHA1 Message Date
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