-
Notifications
You must be signed in to change notification settings - Fork 39
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
Add blacklisted reason field to alert sender #2670
Add blacklisted reason field to alert sender #2670
Conversation
Okay, by factoring out alert sender as a fixture I was able to fix some problems, but the tests are still not green. For some reason caplog doesn't capture the logging part, even though I am certain that it detects that the alert sender is blacklisted. I have verified that by changing the return value there and then checking for that. So if you have any ideas @lunkwill42 on why caplog is not doing what I expect it to be doing, please let me know. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In addition to my caplog feedback, I see that many of your tests and fixtures lack a dependency to the db
fixture. This means two things:
-
You're not guaranteed to have a database service available when the fixture or test is run. (although, in the current state of the integration test suite, PostgreSQL will always be available when the tests run, just because your tests are in the
integration
directory). -
Although fixtures that add database data and removes it again on teardown is fine, using the
db
fixture will ensure that each test runs inside a transaction that is rolled back as soon as the test ends.
Codecov Report
@@ Coverage Diff @@
## master #2670 +/- ##
==========================================
+ Coverage 54.74% 54.94% +0.19%
==========================================
Files 560 561 +1
Lines 40732 40828 +96
==========================================
+ Hits 22298 22432 +134
+ Misses 18434 18396 -38
... and 7 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
b4960c8
to
e2b92de
Compare
Kudos, SonarCloud Quality Gate passed! |
Since @johannaengland is out sick today, I decided to rebase and force-push this to get it ready for a merge. However, GitHub seems to have decided that my force-push constituted a reset to master, that the PR now contains no commits, and closed it. Now I am no longer allowed to push back to Johanna's branch, which means I'm forced to create a new PR 😛 |
That's one of many reasons when a PR is approved I prefer to do the merge locally and push to master directly. A lot more WYSIWYG! |
Fixes #2664.