mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2025-07-20 13:38:46 -04:00
tests: Skip test that require tantivy.
This commit is contained in:
parent
b7cc1d60f3
commit
1a8f28b90a
2 changed files with 11 additions and 2 deletions
|
@ -1,11 +1,12 @@
|
|||
import asyncio
|
||||
import pdb
|
||||
import pprint
|
||||
import pytest
|
||||
|
||||
from nio import RoomMessage
|
||||
|
||||
from conftest import faker
|
||||
from pantalaimon.index import Index, IndexStore
|
||||
from pantalaimon.index import INDEXING_ENABLED
|
||||
from pantalaimon.store import FetchTask
|
||||
|
||||
TEST_ROOM = "!SVkFJHzfwvuaIEawgC:localhost"
|
||||
|
@ -95,6 +96,10 @@ class TestClass(object):
|
|||
assert task2 in tasks
|
||||
|
||||
async def test_new_indexstore(self, tempdir):
|
||||
if not INDEXING_ENABLED:
|
||||
pytest.skip("Indexing needs to be enabled to test this")
|
||||
|
||||
from pantalaimon.index import Index, IndexStore
|
||||
loop = asyncio.get_event_loop()
|
||||
|
||||
store = IndexStore("example", tempdir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue