test_rtutil: Capture debug logs for test_read_only_cache.

To help with SUSE installation, RT#10543.
This commit is contained in:
Brett Smith 2020-05-13 10:25:24 -04:00
parent 079d8ec9a3
commit 66cd27e7f0

View file

@ -16,6 +16,7 @@
import contextlib
import itertools
import logging
import re
import pytest
@ -214,7 +215,8 @@ def test_no_shared_cache(new_client):
assert not rt2.exists(1)
assert rt1.exists(1)
def test_read_only_cache(new_client, tmp_path):
def test_read_only_cache(new_client, tmp_path, caplog):
caplog.set_level(logging.DEBUG, logger='conservancy_beancount.rtutil')
db_path = tmp_path / 'test.db'
ticket_id, _, expected = EXPECTED_URLS[0]
expected = DEFAULT_RT_URL + expected