mirror of
https://github.com/odoo/runbot.git
synced 2025-03-19 01:15:48 +07:00
![]() Seems like a good idea to better keep track of the log of an Odoo used to testing, and avoid silently ignoring logged errors. - intercept odoo's stderr via a pipe, that way we can still write it back out and pytest is able to read & buffer it, pytest's capfd would not work correctly: it breaks output capturing (and printing on failure); and because of the way it hooks in it's unable to capture from subprocesses inheriting the standard stream, cf pytest-dev/pytest#4428 - update the env fixture to check that the odoo log doesn't have any exception on failure - make that check conditional on the `expect_log_errors` marker, this way we can mark tests for which we expect errors to be logged, and assert that that does happen |
||
---|---|---|
.. | ||
conftest.py | ||
test_batches.py | ||
test_conflicts.py | ||
test_limit.py | ||
test_overrides.py | ||
test_simple.py | ||
test_updates.py | ||
test_weird.py |