forked from sammchardy/python-binance
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_ping.py
More file actions
50 lines (32 loc) · 1.11 KB
/
Copy pathtest_ping.py
File metadata and controls
50 lines (32 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import os
import pytest
proxies = {}
proxy = os.getenv("PROXY")
def test_papi_ping_sync(client):
ping_response = client.papi_ping()
assert ping_response is not None
def test_ping_sync(client):
ping_response = client.ping()
assert ping_response is not None
def test_futures_ping(client):
ping_response = client.futures_ping()
assert ping_response is not None
def test_coin_ping(client):
ping_response = client.futures_coin_ping()
assert ping_response is not None
@pytest.mark.asyncio()
async def test_papi_ping_async(clientAsync):
ping_response = await clientAsync.papi_ping()
assert ping_response is not None
@pytest.mark.asyncio()
async def test_ping_async(clientAsync):
ping_response = await clientAsync.ping()
assert ping_response is not None
@pytest.mark.asyncio()
async def test_futures_ping_async(clientAsync):
ping_response = await clientAsync.futures_ping()
assert ping_response is not None
@pytest.mark.asyncio()
async def test_coin_ping_async(clientAsync):
ping_response = await clientAsync.futures_coin_ping()
assert ping_response is not None