MCPcopy Create free account
hub / github.com/ccxt/ccxt / test_parse_date

Function test_parse_date

python/ccxt/test/base/test_datetime.py:55–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53
54
55def test_parse_date():
56 exchange = ccxt.Exchange({
57 'id': 'sampleexchange',
58 })
59 assert exchange.parse_date('1986-04-26 00:00:00') == 514857600000
60 assert exchange.parse_date('1986-04-26T01:23:47.000Z') == 514862627000
61 assert exchange.parse_date('1986-13-13 00:00:00') is None
62
63
64def test_microseconds():

Callers 1

test_datetimeFunction · 0.85

Calls 2

parse_dateMethod · 0.95
ExchangeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…