Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor controller tests to use flask_app_fixture (PP-893) #1634

Merged
merged 8 commits into from
Jan 29, 2024

Conversation

jonathangreen
Copy link
Member

Description

Refactor tests to use the new flask_app_fixture defined in #1632. Remove a couple uses of the SettingsController class.

This cleanup was done in anticipation of the removal of the ExternalIntegration, ConfigurationSettings and SettingsController classes in a future PR.

Motivation and Context

Cleanup for PP-4 now that almost everything has been converted to use integration settings.

How Has This Been Tested?

Running tests in CI.

Checklist

  • I have updated the documentation accordingly.
  • All new and existing tests passed.

@jonathangreen jonathangreen requested a review from a team January 27, 2024 01:44
@jonathangreen jonathangreen force-pushed the feature/remove-settings-controller-usages branch 2 times, most recently from 1a585d2 to 6bcde83 Compare January 29, 2024 15:00
@jonathangreen jonathangreen force-pushed the feature/remove-settings-controller-usages branch from 6bcde83 to 975dfbe Compare January 29, 2024 15:17
Copy link

codecov bot commented Jan 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5e5a17c) 89.61% compared to head (975dfbe) 89.61%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1634   +/-   ##
=======================================
  Coverage   89.61%   89.61%           
=======================================
  Files         247      247           
  Lines       28954    28952    -2     
  Branches     6608     6608           
=======================================
- Hits        25946    25945    -1     
+ Misses       2025     2024    -1     
  Partials      983      983           
Flag Coverage Δ
Api 75.55% <ø> (+<0.01%) ⬆️
Core 58.93% <ø> (+<0.01%) ⬆️
migration 26.43% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jonathangreen jonathangreen changed the title Refactor controller tests to use flask_app_fixture Refactor controller tests to use flask_app_fixture (PP-893) Jan 29, 2024
Copy link
Contributor

@dbernstein dbernstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@jonathangreen jonathangreen merged commit 178f69c into main Jan 29, 2024
28 checks passed
@jonathangreen jonathangreen deleted the feature/remove-settings-controller-usages branch January 29, 2024 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants