Skip to content

Collect the ternary-contour pole-labels test - #5866

Open
dylanpulver wants to merge 1 commit into
plotly:mainfrom
dylanpulver:tests/collect-pole-labels-test
Open

dylanpulver wants to merge 1 commit into
plotly:mainfrom
dylanpulver:tests/collect-pole-labels-test

Conversation

@dylanpulver

Copy link
Copy Markdown
Contributor

TestTernarycontour.check_pole_labels sits among the test_ methods, takes no arguments beyond self, and nothing calls it, so it has never been collected. The two similarly-named methods alongside it, compare_list_values and compare_dict_values, are real helpers that take arguments and are called by other tests; this one builds a figure and asserts.

Renaming it to test_pole_labels runs it and it passes, taking the class from 4 collected tests to 5.

It covers behaviour nothing else does. Changing _ternary_contour.py:39 so the aaxis title reads pole_labels[1] instead of pole_labels[0]:

  • on main the class still reports 4 passed
  • with this rename it reports 1 failed, 4 passed

Run with .[dev_optional] installed.

TestTernarycontour.check_pole_labels sits among the test_ methods, takes no
arguments beyond self and nothing calls it, so it has never been collected.
Unlike compare_list_values and compare_dict_values alongside it, which are
real helpers called by other tests, this one builds a figure and asserts.

Renaming it to test_pole_labels runs it and it passes.

This branch has not been deployed

No deployments
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.

1 participant