Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix faulty logic for success/failure comment #576

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 1 commit into from
Sep 6, 2022
Merged

Fix faulty logic for success/failure comment #576

merged 1 commit into from
Sep 6, 2022

Conversation

DanielNoord
Copy link
Contributor

Refs #565 (comment)

The logic introduced in #565 was not correct as the if ... if ... else was place incorrectly.
I didn't catch this as the previous tests don't actually test for the actual message being commented, but only check if a comment is being posted. This fixes this and updates all test that check for comment posting in the status_change tests.

Pinging @ezio-melotti for a review.

Sorry for the confusion caused! I should have seen this gap in the tests when I first worked on this issue.

@codecov
Copy link

codecov bot commented Sep 6, 2022

Codecov Report

Merging #576 (fb9676e) into main (38b814f) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #576   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           10        10           
  Lines         1025      1032    +7     
  Branches        72        72           
=========================================
+ Hits          1025      1032    +7     
Impacted Files Coverage Δ
miss_islington/status_change.py 100.00% <100.00%> (ø)
tests/test_status_change.py 100.00% <100.00%> (ø)

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