Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
Only enable capture (=mute) pytest in py.test_run_all
Browse files Browse the repository at this point in the history
If capture is enabled, ipdb doesn't work in tests.

Therefore we only capture output in the py.test_run_all script.
  • Loading branch information
Nicolas Dietrich committed Jul 30, 2014
1 parent 4359f22 commit 98e9c02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion buildout.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ recipe = collective.recipe.template
input = inline:
#!/bin/bash
cd ${buildout:directory}
bin/py.test --timeout=60 src/adhocracy src/adhocracy_sample tests "$@"
bin/py.test --capture=fd --timeout=60 src/adhocracy src/adhocracy_sample tests "$@"
output = ${buildout:bin-directory}/py.test_run_all
mode = 755

Expand Down
2 changes: 1 addition & 1 deletion etc/pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
addopts =
--doctest-glob='*.rst'
--tb=native
--capture=fd
--capture=no
--splinter-implicit-wait=1
--splinter-speed=0
--splinter-socket-timeout=120
Expand Down

0 comments on commit 98e9c02

Please sign in to comment.