Remove Synth Finance references (#47)

* Remove Synth Finance integration

* Linter noise

* Fix failing (old) test, use it for Twelve Data

---------

Signed-off-by: Juan José Mata <juanjo.mata@gmail.com>
This commit is contained in:
Juan José Mata
2025-08-01 15:28:55 -07:00
committed by GitHub
parent 656f7e9495
commit 54bc37a651
38 changed files with 35 additions and 1283 deletions

View File

@@ -8,7 +8,6 @@ class Settings::HostingsControllerTest < ActionDispatch::IntegrationTest
sign_in users(:family_admin)
@provider = mock
Provider::Registry.stubs(:get_provider).with(:synth).returns(@provider)
Provider::Registry.stubs(:get_provider).with(:twelve_data).returns(@provider)
@usage_response = provider_success_response(
OpenStruct.new(
@@ -32,7 +31,6 @@ class Settings::HostingsControllerTest < ActionDispatch::IntegrationTest
test "should get edit when self hosting is enabled" do
@provider.expects(:usage).returns(@usage_response)
@provider.expects(:usage).returns(@usage_response)
with_self_hosting do
get settings_hosting_url
@@ -42,9 +40,9 @@ class Settings::HostingsControllerTest < ActionDispatch::IntegrationTest
test "can update settings when self hosting is enabled" do
with_self_hosting do
patch settings_hosting_url, params: { setting: { synth_api_key: "1234567890" } }
patch settings_hosting_url, params: { setting: { twelve_data_api_key: "1234567890" } }
assert_equal "1234567890", Setting.synth_api_key
assert_equal "1234567890", Setting.twelve_data_api_key
end
end