-
-
Notifications
You must be signed in to change notification settings - Fork 57
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 an edit and remove button when nutriscore prediction is posted on Slack channel #783
Conversation
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.
👏 well done @Jagrutiti
You only have to lint + change the title of your PR :-)
Lets merge this one and go ahead with next feature !
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.
@Jagrutiti thanks for your work. Still some changes necessary, but we never were so close to the end ;-)
Co-authored-by: Alex Garel <alex@garel.org>
Co-authored-by: Alex Garel <alex@garel.org>
tests/unit/test_slack.py
Outdated
) | ||
) | ||
|
||
mock.assert_called_once_with( | ||
notifier.POST_MESSAGE_URL, | ||
data=PartialRequestMatcher( | ||
f"The `en:vegan` label was automatically added to product 123 (<https://world.{settings._robotoff_domain}/product/123|product>, <{settings.OFF_IMAGE_BASE_URL}/image/1|source image>)", | ||
f"The `en:vegan` label was automatically added to product 123 (<https://world.{settings._robotoff_domain}/product/123|product>, <https://robotoff.{settings._robotoff_domain}/api/v1/images/crop?image_url={settings.OFF_IMAGE_BASE_URL}/image/1&y_min=2&x_min=2&y_max=4&x_max=4|source image>)", |
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.
This should not change, you restored the test, so there should be non crop any more
Codecov Report
@@ Coverage Diff @@
## master #783 +/- ##
==========================================
+ Coverage 44.73% 51.00% +6.26%
==========================================
Files 96 92 -4
Lines 6981 6772 -209
==========================================
+ Hits 3123 3454 +331
+ Misses 3858 3318 -540
Continue to review full report at Codecov.
|
@Jagrutiti I merged though test didn't pass but, I will fix with another PR (Sonar seems unable to run on an external repository PR). Please, makes your next PRs directly from this repository (not from your own). |
I will need to remember that. |
What
Fixes bug(s)
Part of