-
Notifications
You must be signed in to change notification settings - Fork 149
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
New notifications #1356
New notifications #1356
Conversation
# self.assertEqual( | ||
# notifications_data[0]["title"], | ||
# f"⚖️ Hey {data['taker_nick']}, you lost the dispute on your order with ID {str(trade.order_id)}." | ||
# ) |
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.
Since the dispute resolution is an admin action, I'm not quite sure how to do it, ideas @Reckless-Satoshi ?
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.
I wonder whether we could directly call
Line 185 in dfd1cf5
def maker_wins(self, request, queryset): |
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.
And fake the admin request with credentials? I'll take a look but for this kind of solutions they are always tricky
4d11c24
to
a9f1696
Compare
a9f1696
to
adbaa60
Compare
Merging this changes as agreed with @Reckless-Satoshi to figure out in other PR what to do with admin actions on tests |
I don´t understand why ruff is complaining on lines doesn´t even exist anymore 🙃 |
What does this PR do?
Includes the necessary changes to be compatible with the existing notifications on web
Checklist before merging
pip install pre-commit
, thenpre-commit install
. Pre-commit installs git hooks that automatically check the codebase. If pre-commit fails when you commit your changes, please fix the problems it points out.