mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 07:26:18 -05:00
Testing that File.a_text is filled even if the file does not match an indexer.
This commit is contained in:
parent
b47df503ab
commit
92abd6b627
1 changed files with 11 additions and 0 deletions
|
|
@ -185,6 +185,17 @@ async def test_refresh_files(test_session, make_files_structure, test_directory)
|
|||
assert_files(test_session, [])
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_refresh_a_text_no_indexer(test_session, make_files_structure):
|
||||
"""File.a_text is filled even if the file does not match an Indexer."""
|
||||
make_files_structure(['foo', 'bar-bar'])
|
||||
|
||||
await lib.refresh_files()
|
||||
|
||||
files = {i.a_text for i in test_session.query(File).all()}
|
||||
assert files == {'{bar,bar-bar}', '{foo}'}
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_refresh_many_files(test_session, make_files_structure):
|
||||
"""Used to profile file refreshing"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue