Skip to content

Commit

Permalink
Update tests, remove conftest code
Browse files Browse the repository at this point in the history
  • Loading branch information
dotX12 committed Apr 27, 2024
1 parent f4b1c08 commit 39f52f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
11 changes: 0 additions & 11 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,11 +0,0 @@
import asyncio

import pytest_asyncio


@pytest_asyncio.fixture(scope="session", autouse=True)
def event_loop():
loop = asyncio.get_event_loop_policy().get_event_loop()
yield loop
loop.run_until_complete(asyncio.sleep(0.025))
loop.close()
3 changes: 2 additions & 1 deletion tests/test_recognize.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@

@pytest_asyncio.fixture(scope="session")
async def song_bytes():
yield await get_file_bytes(file="examples/data/Gloria.ogg")
bytes_data = await get_file_bytes(file="examples/data/Gloria.ogg")
yield bytes_data


@pytest.mark.asyncio
Expand Down

0 comments on commit 39f52f8

Please sign in to comment.