test_rtutil: Capture debug logs for test_read_only_cache.
To help with SUSE installation, RT#10543.
This commit is contained in:
parent
079d8ec9a3
commit
66cd27e7f0
1 changed files with 3 additions and 1 deletions
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
import contextlib
|
import contextlib
|
||||||
import itertools
|
import itertools
|
||||||
|
import logging
|
||||||
import re
|
import re
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -214,7 +215,8 @@ def test_no_shared_cache(new_client):
|
||||||
assert not rt2.exists(1)
|
assert not rt2.exists(1)
|
||||||
assert rt1.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'
|
db_path = tmp_path / 'test.db'
|
||||||
ticket_id, _, expected = EXPECTED_URLS[0]
|
ticket_id, _, expected = EXPECTED_URLS[0]
|
||||||
expected = DEFAULT_RT_URL + expected
|
expected = DEFAULT_RT_URL + expected
|
||||||
|
|
Loading…
Reference in a new issue