MCPcopy Create free account

hub / github.com/diogomatoschaves/MyCryptoBot / functions

Functions982 in github.com/diogomatoschaves/MyCryptoBot

Methodtest_db_settings_used_when_env_unset
(self, monkeypatch, mock_post)
shared/utils/tests/test_notifier.py:110
Methodtest_deactivation_paths_fire_critical_alert
( self, exception, mock_alert, mock_publish_event, create_pipeline )
execution/tests/service/helpers/test_handle_order_execution_errors.py:45
Methodtest_delete_last_entry_removes_only_incomplete_candle
(self, common_fixture)
data/tests/sources/binance/_binance/test_binance_handler.py:135
Methodtest_delete_pipelines_endpoint
( self, extra_url, pipeline_id, response, client, mock_get_str
data/tests/service/blueprints/test_dashboard.py:372
Methodtest_enqueue_includes_failure_handling_kwargs
( self, mocker, app_client, mock_settings_env_vars, mock_redis_connect
model/tests/service/test_model_app.py:191
Methodtest_env_wins_over_db
(self, configured, mock_post)
shared/utils/tests/test_notifier.py:124
Methodtest_exception
( self, input_value, exception, common_fixture )
data/tests/sources/binance/_binance/test_binance_handler.py:348
Methodtest_exception_start_symbol_trading
( self, parameters, symbols, times_called, expected_exception,
execution/tests/exchanges/binance/futures/test_binance_futures_trader.py:459
Methodtest_exception_stop_symbol_trading
( self, parameters, symbols, position, units, times_called,
execution/tests/exchanges/binance/futures/test_binance_futures_trader.py:493
Methodtest_exception_trade
( self, side_effect, positions, times_called, expected_value,
execution/tests/exchanges/binance/futures/test_binance_futures_trader.py:565
Methodtest_exceptions_with_args
(self, exception, message)
data/tests/service/helpers/test_data_exceptions.py:183
Methodtest_exceptions_with_args
(self, exception, message)
execution/tests/service/helpers/test_execution_exceptions.py:129
Methodtest_exceptions_without_args
(self, exception, message)
data/tests/service/helpers/test_data_exceptions.py:97
Methodtest_exceptions_without_args
(self, exception, message)
execution/tests/service/helpers/test_execution_exceptions.py:68
Methodtest_exchange_error_falls_back_without_raising
(self, create_pipeline, mock_alert)
execution/tests/service/test_reconciliation.py:136
Methodtest_execute_order
GIVEN some params WHEN the method execute_order is called THEN the return value is equal to the expected response
model/tests/service/test_model_external_requests.py:8
Methodtest_exhausted_deadline_raises_order_delivery_error
(self, mock_execute, mock_sleep)
model/tests/signal_generation/test_order_delivery.py:112
Methodtest_extract_data
(self, fixture, exchange_data)
data/tests/sources/binance/extract/test_extract.py:20
Methodtest_failed_execute_order
( self, params, expected_value, mock_binance_futures_trader_raise_exception_tr
execution/tests/service/test_execution_app.py:390
Methodtest_failed_execute_order_negative_equity
( self, endpoint, params, expected_value, mock_binance_futures_trader_
execution/tests/service/test_execution_app.py:432
Methodtest_failed_leverage_setting
( self, mock_binance_futures_trader_raise_leverage_setting_fail, create_pipeline,
execution/tests/service/test_execution_app.py:482
Methodtest_failed_send_is_throttled_too
(self, configured, mock_post)
shared/utils/tests/test_notifier.py:97
Methodtest_failed_start_stop_symbol_trading
( self, route, params, expected_value, mock_binance_futures_trader_rai
execution/tests/service/test_execution_app.py:470
Methodtest_failed_strategy_fetch_is_not_cached
(self, client, mocker)
data/tests/service/blueprints/test_bots_api.py:341
Methodtest_failure_deactivates_cleans_up_and_publishes
( self, module_mocks, create_pipeline )
data/tests/service/blueprints/test_run_data_collection.py:30
Methodtest_flattens_pipeline_when_exchange_is_flat
( self, create_pipeline, mock_alert )
execution/tests/service/test_reconciliation.py:63
Methodtest_fresh_signal_capped_by_job_budget
(self)
model/tests/signal_generation/test_order_delivery.py:43
Methodtest_futures_account_balance
( self, response, client, test_mock_setup )
execution/tests/service/blueprints/test_market_data.py:169
Methodtest_generate_signal
( self, params, expected_value, app_client, mock_settings_env_vars,
model/tests/service/test_model_app.py:155
Methodtest_generate_signal
GIVEN some params WHEN the method generate_signal is called THEN the return value is equal to the expected response
data/tests/service/test_data_external_requests.py:14
Methodtest_get_balance
GIVEN some params WHEN the method generate_signal is called THEN the return value is equal to the expected response
data/tests/service/test_data_external_requests.py:166
Methodtest_get_historical_data
( self, common_fixture, tmp_path )
data/tests/sources/binance/_binance/test_binance_handler.py:360
Methodtest_get_open_positions
GIVEN some params WHEN the method generate_signal is called THEN the return value is equal to the expected response
data/tests/service/test_data_external_requests.py:189
Methodtest_get_open_positions
( self, response, client, test_mock_setup )
execution/tests/service/blueprints/test_market_data.py:196
Methodtest_get_pipelines_endpoint
( self, extra_url, get_pipelines, client, mock_get_strategies_dashboar
data/tests/service/blueprints/test_dashboard.py:331
Methodtest_get_positions_endpoint
( self, extra_url, included_positions, client, create_neutral_position
data/tests/service/blueprints/test_dashboard.py:276
Methodtest_get_price
GIVEN some params WHEN the method generate_signal is called THEN the return value is equal to the expected response
data/tests/service/test_data_external_requests.py:141
Methodtest_get_prices_endpoint
( self, extra_url, response, client, test_mock_setup )
execution/tests/service/blueprints/test_market_data.py:122
Methodtest_get_resources_endpoint
( self, extra_url, response, client, create_symbol, create_exc
data/tests/service/blueprints/test_dashboard.py:200
Methodtest_get_strategies
( self, app_client, mock_settings_env_vars, mocked_rq_enqueue_call, mo
model/tests/service/test_model_app.py:171
Methodtest_get_strategies
GIVEN some params WHEN the method generate_signal is called THEN the return value is equal to the expected response
data/tests/service/test_data_external_requests.py:118
Methodtest_get_trades_endpoint
( self, extra_url, included_trades, client, create_trades )
data/tests/service/blueprints/test_dashboard.py:246
Methodtest_handler_deactivates_pipeline_and_returns_error
(self, create_pipeline)
execution/tests/exchanges/binance/futures/test_atomic_bookkeeping.py:174
Methodtest_happy_path_memory_matches_db
(self, trader, create_pipeline)
execution/tests/exchanges/binance/futures/test_atomic_bookkeeping.py:65
Methodtest_ignores_non_message_frames
(self)
data/tests/service/blueprints/test_events.py:49
Methodtest_index_route
(self, app_client)
model/tests/service/test_model_app.py:17
Methodtest_index_route
(self, client)
data/tests/service/test_data_app.py:11
Methodtest_index_route
(self, test_mock_setup, client)
execution/tests/service/test_execution_app.py:50
Methodtest_interface_error_handling
( self, raises_error, side_effect, call_count, client, mock_ge
data/tests/service/blueprints/test_bots_api.py:640
Methodtest_internal_kwargs_not_forwarded_to_binance
reducing/stop_trading/pipeline_id are internal flags and must not leak into the Binance API request; closing orders are reduce-only.
execution/tests/exchanges/binance/futures/test_order_idempotency.py:158
Methodtest_load_data
(self, fixture, exchange_data, create_pipeline)
data/tests/sources/binance/load/test_load.py:27
Methodtest_loading_pipeline_beyond_budget_is_flagged
(self, base_mocks)
data/tests/service/cron_jobs/test_data_cron_jobs.py:401
Methodtest_loading_pipeline_within_budget_is_untouched
(self, base_mocks)
data/tests/service/cron_jobs/test_data_cron_jobs.py:387
Methodtest_logout_clears_cookie
(self, client, mock_redis_connection_user_mgmt)
data/tests/service/blueprints/test_user_management.py:71
Methodtest_malformed_enqueued_at_falls_back
(self)
model/tests/signal_generation/test_order_delivery.py:72
Methodtest_mismatch_within_grace_period_is_not_stopped
( self, fake_executor_submit, mock_redis_connection_app_health, create_pipelin
data/tests/service/cron_jobs/test_data_cron_jobs.py:316
Methodtest_missing_enqueued_at_uses_job_budget
(self)
model/tests/signal_generation/test_order_delivery.py:37
Methodtest_missing_exchange_entry_treated_as_flat
(self, create_pipeline, mock_alert)
execution/tests/service/test_reconciliation.py:100
Functiontest_mock_setup
( mocker, create_exchange, create_symbol, create_pipeline, create_pipeline_with_balance,
execution/tests/exchanges/binance/futures/test_binance_futures_trader.py:43
Functiontest_mock_setup
( mocker, ping, init_session, futures_change_leverage, futures_create_order, futures_a
execution/tests/service/test_execution_app.py:36
Functiontest_mock_setup
( create_exchange, ping, init_session, futures_symbol_ticker, futures_account_balance,
execution/tests/service/cron_jobs/test_execution_cron_jobs.py:27
Functiontest_mock_setup
( mocker, create_exchange, create_symbol, ping, init_session, futures_symbol_ticker,
execution/tests/service/blueprints/test_market_data.py:31
Methodtest_multiple_pipelines_on_symbol_alert_only
(self, create_pipeline, mock_alert)
execution/tests/service/test_reconciliation.py:108
Methodtest_never_ingested_pipeline_is_flagged
(self, base_mocks)
data/tests/service/cron_jobs/test_data_cron_jobs.py:375
Methodtest_never_raises
(self, configured, mock_post)
shared/utils/tests/test_notifier.py:69
Methodtest_never_raises_and_resets_connection
(self, live_mode, mock_redis)
shared/utils/tests/test_events.py:61
Methodtest_no_deadline_fails_immediately_on_transport_error
(self, mock_execute, mock_sleep)
model/tests/signal_generation/test_order_delivery.py:122
Methodtest_no_workers_still_enqueues_but_alerts
( self, mocker, app_client, mock_settings_env_vars, mock_redis_connect
model/tests/service/test_model_app.py:218
Methodtest_noop_and_single_warning_when_unconfigured
(self, monkeypatch, mock_post, caplog)
shared/utils/tests/test_notifier.py:39
Methodtest_noop_when_test_env_set
(self, mock_redis)
shared/utils/tests/test_events.py:33
Methodtest_noop_when_test_env_set
(self, monkeypatch, mock_post)
shared/utils/tests/test_notifier.py:31
Methodtest_null_execution_response_fails_gracefully
(self, start_mocks, create_pipeline)
data/tests/service/blueprints/test_run_data_collection.py:85
Methodtest_one_broken_pipeline_does_not_abort_other_checks
(self, base_mocks, mocker)
data/tests/service/cron_jobs/test_data_cron_jobs.py:478
Methodtest_one_position_per_pipeline
(self, create_pipeline)
execution/tests/exchanges/binance/futures/test_order_idempotency.py:191
Methodtest_order_delivery_error_is_critical
(self, mocker)
model/tests/signal_generation/test_order_delivery.py:139
Methodtest_orders_create_failure_leaves_db_and_memory_unchanged
( self, trader, create_pipeline, mocker, mock_alert )
execution/tests/exchanges/binance/futures/test_atomic_bookkeeping.py:76
Methodtest_other_errors_are_warnings
(self, mocker)
model/tests/signal_generation/test_order_delivery.py:149
Methodtest_paper_pipeline_uses_paper_trader
(self, create_pipeline, mock_alert)
execution/tests/service/test_reconciliation.py:124
Methodtest_pipeline_equity
( self, extra_url, response, client, patch_datetime_now, creat
data/tests/service/blueprints/test_dashboard.py:716
Methodtest_pipeline_save_failure_rolls_back_orders_row
( self, trader, create_pipeline, mocker, mock_alert )
execution/tests/exchanges/binance/futures/test_atomic_bookkeeping.py:99
Methodtest_pipelines_metrics
( self, response, client, create_pipeline, create_pipeline_2,
data/tests/service/blueprints/test_dashboard.py:600
Methodtest_position_db_failure_keeps_memory_and_trades_unchanged
( self, trader, create_pipeline, mocker, mock_alert )
execution/tests/exchanges/binance/futures/test_atomic_bookkeeping.py:142
Methodtest_position_memory_updated_after_commit
(self, trader, create_pipeline)
execution/tests/exchanges/binance/futures/test_atomic_bookkeeping.py:164
Methodtest_publishes_payload
(self, live_mode, mock_redis)
shared/utils/tests/test_events.py:38
Methodtest_pubsub_closed_even_when_close_raises
(self)
data/tests/service/blueprints/test_events.py:63
Methodtest_put_pipelines_endpoint
( self, extra_url, params, response, client, mock_get_strategi
data/tests/service/blueprints/test_dashboard.py:454
Methodtest_raises_after_exhausted_retries
Persistent connection failure must surface as an exception - never as a silent None that callers would record as success.
execution/tests/exchanges/binance/futures/test_order_idempotency.py:119
Methodtest_redis_outage_fails_fast
(self, client, mocker)
data/tests/service/blueprints/test_events.py:102
Methodtest_replaces_order_when_not_found
The create request timed out before reaching Binance: re-placing with the same client order id is safe.
execution/tests/exchanges/binance/futures/test_order_idempotency.py:98
Methodtest_response_without_code_key_fails_gracefully
(self, start_mocks, create_pipeline)
data/tests/service/blueprints/test_run_data_collection.py:99
Methodtest_restart_exhausted_fires_critical_alert
( self, fake_executor_submit, mock_redis_connection_app_health, create_pipelin
data/tests/service/cron_jobs/test_data_cron_jobs.py:262
Methodtest_restarted_counter_resets_after_sustained_health
( self, fake_executor_submit, mock_redis_connection_app_health, create_pipelin
data/tests/service/cron_jobs/test_data_cron_jobs.py:289
Methodtest_returns_existing_order_after_timeout
The create request timed out but had reached Binance: the order is found by client id and must NOT be placed a second time.
execution/tests/exchanges/binance/futures/test_order_idempotency.py:83
Methodtest_routes_disallowed_methods
GIVEN a method for a certain route WHEN the method is invalid THEN the status code of the response will be 405 equiv
model/tests/service/test_model_app.py:73
Methodtest_routes_disallowed_methods
GIVEN a method for a certain route WHEN the method is invalid THEN the status code of the response will be 405 equiv
data/tests/service/blueprints/test_dashboard.py:144
Methodtest_routes_disallowed_methods
(self, route, method, client)
data/tests/service/blueprints/test_user_management.py:33
Methodtest_routes_disallowed_methods
GIVEN a method for a certain route WHEN the method is invalid THEN the status code of the response will be 405 equiv
data/tests/service/blueprints/test_bots_api.py:47
Methodtest_routes_disallowed_methods
GIVEN a method for a certain route WHEN the method is invalid THEN the status code of the response will be 405 equiv
execution/tests/service/test_execution_app.py:61
Methodtest_routes_disallowed_methods
(self, route, method, client)
execution/tests/service/blueprints/test_market_data.py:96
Methodtest_same_order_id_coexists_across_symbols
(self, create_exchange, create_symbol)
execution/tests/exchanges/binance/futures/test_order_idempotency.py:37
← previousnext →801–900 of 982, ranked by callers