mirror of
https://github.com/facefusion/facefusion.git
synced 2026-05-12 18:32:18 +02:00
12 lines
285 B
Python
12 lines
285 B
Python
from facefusion.apis.api_helper import get_sec_websocket_protocol
|
|
|
|
|
|
def test_get_sec_websocket_protocol() -> None:
|
|
scope =\
|
|
{
|
|
'type': 'websocket',
|
|
'headers': [ (b'sec-websocket-protocol', b'access_token.abc') ]
|
|
}
|
|
|
|
assert get_sec_websocket_protocol(scope) == 'access_token.abc'
|