-
Notifications
You must be signed in to change notification settings - Fork 2
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
UAT release #2102
UAT release #2102
Conversation
…hen-suspending-Licence
…hen-suspending-Licence
…hen-suspending-Licence
…hen-suspending-Licence
…details_to_lite_hmrc function
…hen-suspending-Licence
…ding-Licence' of https://github.com/uktrade/lite-api into LTD-5167-turn-off-HMRC-cancellation-message-when-suspending-Licence
…tion-message-when-suspending-Licence LTD-5167-turn-off-HMRC-cancellation-message-when-suspending-Licence
…mendment-status [LTD-5121] Rename superseded by amendment status
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.
Worth considering. View full project report here.
@@ -44,7 +45,7 @@ def copy_detail(self, pk): | |||
return values | |||
|
|||
|
|||
class Party(TimestampableModel): | |||
class Party(TimestampableModel, Clonable): |
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 model has lots of fields. Consider splitting into multiple models. More info.
self.assertTrue( | ||
strings.Applications.Generic.INVALID_OPERATION_FOR_NON_DRAFT_OR_MAJOR_EDIT_CASE_ERROR | ||
in resp.content.decode("utf-8") | ||
) |
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.
self.assertTrue( | |
strings.Applications.Generic.INVALID_OPERATION_FOR_NON_DRAFT_OR_MAJOR_EDIT_CASE_ERROR | |
in resp.content.decode("utf-8") | |
) | |
self.assertIn( | |
strings.Applications.Generic.INVALID_OPERATION_FOR_NON_DRAFT_OR_MAJOR_EDIT_CASE_ERROR, resp.content.decode("utf-8")) |
self.assertIn
provides more helpful failure messages than self.assertTrue
. Read more.
|
||
def clone(self, exclusions=None, **overrides): | ||
if not overrides.get("party"): | ||
cloned_party = self.party.clone() |
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.
Django automatically creates a related_name
if it's not set. If it were set then a more readable and explicit relationship is set up. More.
Aim
UAT release