Skip to content

fix(tests): stabilize test_ignored_keywords across CI#647

Open
Bingtagui404 wants to merge 1 commit intoUltraplot:mainfrom
Bingtagui404:fix/stabilize-ignored-keywords-test
Open

fix(tests): stabilize test_ignored_keywords across CI#647
Bingtagui404 wants to merge 1 commit intoUltraplot:mainfrom
Bingtagui404:fix/stabilize-ignored-keywords-test

Conversation

@Bingtagui404
Copy link

Summary

  • Remove @pytest.mark.skip from test_ignored_keywords
  • Replace brittle len(record) == 3 count assertions with specific message-content checks
  • Filter warnings by UltraPlotWarning category using issubclass instead of string matching
  • Add warnings.simplefilter("always") to ensure warnings are captured regardless of environment
  • Each assertion now checks that the expected keyword name appears in a warning message

closes #641

Remove the skip marker and replace brittle warning-count assertions
with specific message-content checks. Filter only UltraPlotWarning
instances and verify the expected keyword names appear in the warning
messages, making the test resilient to unrelated warnings from
different environments.

closes Ultraplot#641
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.

Stabilize the ignored-keyword warning test across CI

1 participant