Capture the right logger

kivy_mainline_and_py3.8
Tyler Goodlet 2019-02-10 17:29:08 -05:00
parent 308ceb1772
commit 57bef52438
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ def test_watchlist_is_sorted_no_dups_and_saved_to_file(piker_dir):
def test_watchlists_config_dir_created(caplog, temp_dir):
"""Ensure that a config directory is created.
"""
with caplog.at_level(logging.DEBUG):
with caplog.at_level(logging.DEBUG, logger='piker'):
wl.make_config_dir(temp_dir)
assert len(caplog.records) == 1
record = caplog.records[0]