1414# You should have received a copy of the GNU Lesser General Public
1515# License along with this library.
1616import tentacles .Trading .Mode .index_trading_mode .index_trading as index_trading
17+ import tentacles .Trading .Mode .index_trading_mode .rebalancer .enums as rebalancer_enums
1718
1819import octobot_commons .constants as commons_constants
1920import octobot_commons .profiles .profile_data as commons_profile_data
@@ -78,7 +79,7 @@ def test_register_historical_configs_applies_master_edits():
7879 index_trading .IndexTradingModeProducer .REBALANCE_TRIGGER_PROFILE_MIN_PERCENT : 20
7980 }
8081 ],
81- index_trading .IndexTradingModeProducer .SYNCHRONIZATION_POLICY : index_trading .SynchronizationPolicy .SELL_REMOVED_INDEX_COINS_ON_RATIO_REBALANCE .value
82+ index_trading .IndexTradingModeProducer .SYNCHRONIZATION_POLICY : rebalancer_enums .SynchronizationPolicy .SELL_REMOVED_INDEX_COINS_ON_RATIO_REBALANCE .value
8283 }
8384 master .tentacles = [commons_profile_data .TentaclesData (name = tentacle_name , config = master_config )]
8485 historical_1 = scripting_library .minimal_profile_data ()
@@ -112,7 +113,7 @@ def test_register_historical_configs_applies_master_edits():
112113 index_trading .IndexTradingModeProducer .REBALANCE_TRIGGER_PROFILE_MIN_PERCENT : 20
113114 }
114115 ],
115- index_trading .IndexTradingModeProducer .SYNCHRONIZATION_POLICY : index_trading .SynchronizationPolicy .SELL_REMOVED_INDEX_COINS_ON_RATIO_REBALANCE .value
116+ index_trading .IndexTradingModeProducer .SYNCHRONIZATION_POLICY : rebalancer_enums .SynchronizationPolicy .SELL_REMOVED_INDEX_COINS_ON_RATIO_REBALANCE .value
116117 }
117118 assert hist_config_2 == {
118119 special_key : 1 ,
@@ -127,5 +128,5 @@ def test_register_historical_configs_applies_master_edits():
127128 index_trading .IndexTradingModeProducer .REBALANCE_TRIGGER_PROFILE_MIN_PERCENT : 20
128129 }
129130 ],
130- index_trading .IndexTradingModeProducer .SYNCHRONIZATION_POLICY : index_trading .SynchronizationPolicy .SELL_REMOVED_INDEX_COINS_ON_RATIO_REBALANCE .value
131+ index_trading .IndexTradingModeProducer .SYNCHRONIZATION_POLICY : rebalancer_enums .SynchronizationPolicy .SELL_REMOVED_INDEX_COINS_ON_RATIO_REBALANCE .value
131132 }
0 commit comments