Skip to content

Fix warning test query #6335

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

Merged
merged 2 commits into from
Aug 1, 2023
Merged

Fix warning test query #6335

merged 2 commits into from
Aug 1, 2023

Conversation

konnectr
Copy link
Collaborator

@konnectr konnectr commented Aug 1, 2023

What type of PR is this?

  • Refactor
  • Feature
  • Bug Fix
  • New Query Runner (Data Source)
  • New Alert Destination
  • Other

Description

python/cpython#28268

How is this tested?

  • Unit tests (pytest, jest)
  • E2E Tests (Cypress)
  • Manually
  • N/A

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

@justinclift justinclift requested a review from gaecoli August 1, 2023 09:41
@gaecoli
Copy link
Member

gaecoli commented Aug 1, 2023

Can you put warning text at there?

@konnectr
Copy link
Collaborator Author

konnectr commented Aug 1, 2023

Can you put warning text at there?

tests/handlers/test_queries.py::TestQueryListResourcePost::test_create_query
  /usr/local/lib/python3.8/unittest/case.py:1215: DeprecationWarning: assertDictContainsSubset is deprecated
    warnings.warn('assertDictContainsSubset is deprecated',

Copy link
Member

@gaecoli gaecoli 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 I think our test style tends to use set() to get the result container. Is it possible not to change the method of set([xxx]), If the new form is used first, I agree!

@gaecoli gaecoli merged commit 196bfec into master Aug 1, 2023
@justinclift justinclift deleted the fix-warning/test-query branch August 1, 2023 11:12
harveyrendell pushed a commit to pushpay/redash that referenced this pull request Jan 8, 2025
* replace assertDictContainsSubset -> asserLessEqual

* refactor definition set
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