-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
chore: Added unit test to query context change #17624
Conversation
8d5809e
to
52b2db8
Compare
Codecov Report
@@ Coverage Diff @@
## master #17624 +/- ##
=======================================
Coverage 68.36% 68.36%
=======================================
Files 1601 1601
Lines 65260 65263 +3
Branches 6963 6963
=======================================
+ Hits 44616 44619 +3
Misses 18754 18754
Partials 1890 1890
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@patch("superset.security.manager.g") | ||
@pytest.mark.usefixtures("load_energy_table_with_slice") | ||
def test_export_chart_with_query_context(self, mock_g): | ||
"""Test that charts that have a query_context are imported correctly""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"""Test that charts that have a query_context are imported correctly""" | |
"""Test that charts that have a query_context are exported correctly""" |
52b2db8
to
2ea8580
Compare
SUMMARY
This PR is adding a unit test to a previous PR (#17600). I added a query_context to one of the current fixtures and exported it, making sure that there was no query context.
For importing charts, the example that we are currently using has a query context already included, and the importing does not transfer it.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION