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

test: World bank examples #12161

Merged
merged 13 commits into from
Jan 13, 2021
Merged

Conversation

kstrz
Copy link
Contributor

@kstrz kstrz commented Dec 21, 2020

SUMMARY

Replace World Bank data example with data loaded by fixture for tests. The aim was to get rid of an external dependency.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TEST PLAN

All tests should be green.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

@rusackas rusackas changed the title Testing/world bank examples Test: World bank examples Dec 21, 2020
@codecov-io
Copy link

codecov-io commented Dec 21, 2020

Codecov Report

Merging #12161 (de82da5) into master (4cf3f99) will decrease coverage by 3.20%.
The diff coverage is 23.07%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #12161      +/-   ##
==========================================
- Coverage   66.79%   63.58%   -3.21%     
==========================================
  Files        1014      486     -528     
  Lines       49524    29946   -19578     
  Branches     5077        0    -5077     
==========================================
- Hits        33079    19042   -14037     
+ Misses      16314    10904    -5410     
+ Partials      131        0     -131     
Flag Coverage Δ
cypress ?
javascript ?
python 63.58% <23.07%> (-0.49%) ⬇️

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

Impacted Files Coverage Δ
superset/examples/world_bank.py 30.98% <20.83%> (-69.02%) ⬇️
superset/dashboards/commands/export.py 90.32% <50.00%> (-1.49%) ⬇️
superset/sql_validators/postgres.py 50.00% <0.00%> (-50.00%) ⬇️
superset/db_engine_specs/mysql.py 79.59% <0.00%> (-12.25%) ⬇️
superset/examples/helpers.py 85.36% <0.00%> (-12.20%) ⬇️
superset/db_engine_specs/sqlite.py 65.62% <0.00%> (-9.38%) ⬇️
superset/databases/commands/create.py 83.67% <0.00%> (-8.17%) ⬇️
superset/databases/commands/update.py 85.71% <0.00%> (-8.17%) ⬇️
superset/databases/commands/test_connection.py 84.78% <0.00%> (-4.35%) ⬇️
... and 552 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4cf3f99...de82da5. Read the comment docs.

@kstrz kstrz changed the title Test: World bank examples test: World bank examples Dec 22, 2020
@kstrz kstrz force-pushed the testing/world_bank_examples branch from dadd9e2 to 70db575 Compare December 23, 2020 08:01
@kstrz kstrz force-pushed the testing/world_bank_examples branch from 70db575 to f149fea Compare January 4, 2021 12:56
Copy link
Member

@willbarrett willbarrett left a comment

Choose a reason for hiding this comment

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

Looks good to me, would love for @dpgaspar to take a pass as well.

Copy link
Member

@dpgaspar dpgaspar left a comment

Choose a reason for hiding this comment

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

LGTM, but we still have some tests failing

"default_filters": "{}",
"color_scheme": None,
},
"metadata": {"mock_key": "mock_value"},
Copy link
Member

Choose a reason for hiding this comment

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

Why the change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think the old value was the side effect of some other tests. Now I set {"mock_key": "mock_value"} explicitly in the fixture.

@kstrz kstrz force-pushed the testing/world_bank_examples branch from f149fea to c4d11cc Compare January 7, 2021 07:33
@kstrz kstrz closed this Jan 7, 2021
@kstrz kstrz reopened this Jan 7, 2021
@kstrz kstrz closed this Jan 8, 2021
@kstrz kstrz reopened this Jan 8, 2021
@kstrz kstrz force-pushed the testing/world_bank_examples branch 2 times, most recently from bc7c313 to f8e4297 Compare January 9, 2021 07:52
@kstrz kstrz closed this Jan 9, 2021
@kstrz kstrz reopened this Jan 9, 2021
@kstrz kstrz force-pushed the testing/world_bank_examples branch 3 times, most recently from 09b16bc to 0d369fc Compare January 11, 2021 13:40
@kstrz kstrz closed this Jan 13, 2021
@kstrz kstrz reopened this Jan 13, 2021
@rusackas rusackas merged commit 241f380 into apache:master Jan 13, 2021
amitmiran137 pushed a commit to nielsen-oss/superset that referenced this pull request Jan 14, 2021
* add world bank data fixture

* fix fixture cleanup, add fixture to dashboard_tests

* apply world bank fixtures, fix tests

* fix fixture typo, dashboard ids

* fix export dashboard metadata

* fix test_export_dashboard_command_key_order

* fix export dash tests, not add row when no orphans

* debug timeout

* fixes after merge

* fix lint

* run pre-commit

* comment test for debug

* fix save.test.js

Co-authored-by: Karol Kostrzewa <karol.kostrzewa@polidea.com>
villebro pushed a commit that referenced this pull request Jan 25, 2021
* add world bank data fixture

* fix fixture cleanup, add fixture to dashboard_tests

* apply world bank fixtures, fix tests

* fix fixture typo, dashboard ids

* fix export dashboard metadata

* fix test_export_dashboard_command_key_order

* fix export dash tests, not add row when no orphans

* debug timeout

* fixes after merge

* fix lint

* run pre-commit

* comment test for debug

* fix save.test.js

Co-authored-by: Karol Kostrzewa <karol.kostrzewa@polidea.com>
@mistercrunch mistercrunch added 🍒 1.0.1 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.2.0 labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/XXL v1.0.1 🍒 1.0.1 🚢 1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants