mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-27 19:26:11 +00:00
158a736360
Fix playback issues that was causing Kodi to hang up
27 lines
706 B
Python
27 lines
706 B
Python
"""Pytest configuration module.
|
|
|
|
Contains fixtures, which are tightly bound to the Cheroot framework
|
|
itself, useless for end-users' app testing.
|
|
"""
|
|
|
|
from __future__ import absolute_import, division, print_function
|
|
__metaclass__ = type
|
|
|
|
import pytest
|
|
|
|
from ..testing import ( # noqa: F401
|
|
native_server, wsgi_server,
|
|
)
|
|
from ..testing import get_server_client
|
|
|
|
|
|
@pytest.fixture # noqa: F811
|
|
def wsgi_server_client(wsgi_server):
|
|
"""Create a test client out of given WSGI server."""
|
|
return get_server_client(wsgi_server)
|
|
|
|
|
|
@pytest.fixture # noqa: F811
|
|
def native_server_client(native_server):
|
|
"""Create a test client out of given HTTP server."""
|
|
return get_server_client(native_server)
|