Skip to content
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

Merged
merged 49 commits into from
Jul 22, 2024
Merged

UAT release #2102

merged 49 commits into from
Jul 22, 2024

Conversation

currycoder
Copy link
Contributor

Aim

UAT release

markj0hnst0n and others added 30 commits July 5, 2024 16:08
…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
currycoder and others added 19 commits July 15, 2024 15:44
[LTD-5152] Ensure that PartyOnApplication.clone creates a copy of the related Party
…or_expected_count_of_CLEs

Remove lite-api test for expected count of CLEs
@currycoder currycoder marked this pull request as ready for review July 22, 2024 12:32
Copy link
Contributor

@code-review-doctor code-review-doctor bot left a 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):
Copy link
Contributor

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.

Comment on lines +137 to +140
self.assertTrue(
strings.Applications.Generic.INVALID_OPERATION_FOR_NON_DRAFT_OR_MAJOR_EDIT_CASE_ERROR
in resp.content.decode("utf-8")
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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()
Copy link
Contributor

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.

@currycoder currycoder merged commit 39d824a into uat Jul 22, 2024
23 checks passed
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.

4 participants