mirror of
https://github.com/we-promise/sure.git
synced 2026-04-14 17:44:07 +00:00
Feature/yahoo finance (#123)
* Implement Yahoo Finance * Added tests * Updated hosting controller to check for managed app_mode instead of env_override * Suggestions from CodeRabbit and Fixes on tests * Remove Css changes * Fix yahoo finance impl and i18n * Updated view to use healthy method * remove usage * Updated env example * keep usage on class just to keep same format * Ci test * Remove some useless validations * Remove logs * Linter fixes * Broke this in my conflict merge * Wrong indentation level --------- Signed-off-by: Juan José Mata <juanjo.mata@gmail.com> Co-authored-by: Juan José Mata <juanjo.mata@gmail.com>
This commit is contained in:
@@ -9,14 +9,17 @@ class Settings::HostingsControllerTest < ActionDispatch::IntegrationTest
|
||||
|
||||
@provider = mock
|
||||
Provider::Registry.stubs(:get_provider).with(:twelve_data).returns(@provider)
|
||||
@usage_response = provider_success_response(
|
||||
|
||||
@provider.stubs(:healthy?).returns(true)
|
||||
Provider::Registry.stubs(:get_provider).with(:yahoo_finance).returns(@provider)
|
||||
@provider.stubs(:usage).returns(provider_success_response(
|
||||
OpenStruct.new(
|
||||
used: 10,
|
||||
limit: 100,
|
||||
utilization: 10,
|
||||
plan: "free",
|
||||
)
|
||||
)
|
||||
))
|
||||
end
|
||||
|
||||
test "cannot edit when self hosting is disabled" do
|
||||
|
||||
Reference in New Issue
Block a user