Skip to content

Commit 15b59bf

Browse files
added test file and test get_leaderboard
1 parent 580fafb commit 15b59bf

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

tests/test_cryptoapi.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import pytest
2+
3+
import numerapi
4+
5+
6+
@pytest.fixture(scope='function', name="api")
7+
def api_fixture():
8+
api = numerapi.CryptoAPI(verbosity='DEBUG')
9+
return api
10+
11+
def test_get_leaderboard(api):
12+
lb = api.get_leaderboard(1)
13+
assert len(lb) == 1

0 commit comments

Comments
 (0)