MCPcopy Index your code
hub / github.com/ccxt/ccxt / assert_static_error

Method assert_static_error

python/ccxt/test/tests_async.py:711–721  ·  view source on GitHub ↗
(self, cond, message, calculated_output, stored_output, key=None)

Source from the content-addressed store, hash-verified

709 exit_script(1)
710
711 def assert_static_error(self, cond, message, calculated_output, stored_output, key=None):
712 # -----------------------------------------------------------------------------
713 # --- Init of static tests functions------------------------------------------
714 # -----------------------------------------------------------------------------
715 calculated_string = json_stringify(calculated_output)
716 stored_string = json_stringify(stored_output)
717 error_message = message
718 if key is not None:
719 error_message = '[' + key + ']'
720 error_message += ' computed: ' + stored_string + ' stored: ' + calculated_string
721 assert cond, error_message
722
723 def load_markets_from_file(self, id):
724 # load markets from file

Calls 1

json_stringifyFunction · 0.90

Tested by

no test coverage detected