question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fix warnings in test

See original GitHub issue

🚀 Feature

Currently, we have several warnings raised during the tests from our side but not catched with pytest.warns:

We need to improve the code of tests by introducing

with pytest.warns(...):
    # code that raises a warning

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
InCogNiTo124commented, May 28, 2020

It sounds really doable. I’ll open a PR by tommorow

1reaction
vfdev-5commented, May 31, 2020

@InCogNiTo124 yes, sounds good !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix warnings inside our tests #2196 - storybookjs/storybook
When running tests for cra-kitchen-sink, we have lots of warnings and messages thrown for react things. Some of them are simply fixing the ......
Read more >
Catch warnings in Jest tests | Ben Ilegbodu
There are many reasons why a developer will leave and not fix these warnings: time pressure, unfamiliarity with the codebase, laziness, ...
Read more >
Fix deprecation warnings in test suite [#3326253] | Drupal.org
When running the tests using Drupal 9 (and 10) a bunch of deprecation warnings are triggered. Things like type hinting, and using assert...
Read more >
Fix the "not wrapped in act(...)" warning when testing Custom ...
Any time your test interacts with a React component in a way that results in a state update, you need to make sure...
Read more >
How to make ng test to fail on warnings - Stack Overflow
I've just finished fixing several warnings on my unit/component tests of my Angular app, that run using ng test (with Karma/Jasmine).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found