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

19828 fixed broken unit tests (warnings + services) #2526

Conversation

PaulGarewal
Copy link
Contributor

Issue #: /bcgov/entity#19828

Description of changes:

  • fixes in unit tests of feature legal name.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the lear license (Apache 2.0).

@PaulGarewal PaulGarewal self-assigned this Mar 18, 2024
("SUCCESS", "GP", EntityRole.RoleTypes.partner, 1, 1, None, None, "BEN", "BC000008"),
("FAIL_PARTNER_REQUIRED", "GP", EntityRole.RoleTypes.partner, 0, 0, "NO_PARTNER", "2 partners are required.", "BEN", "BC000009"),
("FAIL_PARTNER_REQUIRED", "GP", EntityRole.RoleTypes.partner, 1, 0, "NO_PARTNER", "2 partners are required.", "BEN", "BC0000010"),
("FAIL_PARTNER_REQUIRED", "GP", EntityRole.RoleTypes.partner, 0, 1, "NO_PARTNER", "2 partners are required.", "BEN", "BC0000011")
],
)
def test_check_firm_parties(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

tests pass here except for FAIL_PROPRIETOR_REQUIRED-SP-proprietor "BC0000005".

),
],
)
def test_check_firm_party(session, test_name, legal_type, role, party_type, expected_code, expected_msg):
def test_check_firm_party(session, test_name, legal_type, role, party_type, expected_code, expected_msg, owner_legal_type, owner_identifier):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

test cases here fail due to NO_BUSINESS_PARTY_MAILING_ADDRESS warning messages

argush3 and others added 24 commits March 26, 2024 09:35
* amalgamation table change

* clean up
* Get unit tests running

* Update pyproject.toml

* Undo format changes to common migrations

* Export BusinessCommon from common models
* 20165 added entity_type changes to alternate name

* typo fix
* AmalTED pdf

* Amalgamating pdf

* remove Dissolution/Restoration Information section

* fix lint error

* lint with flake8

* lint
* 19154

Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>

* fix linting

Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>

* update error messages

Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>

---------

Signed-off-by: Hongjing Chen <Hongjing.Chen@gov.bc.ca>
* fix spacing and TING

* retrive to the previous output
* added first draft of outputs

* testing adding folder

* added draft amalgamation outputs

* cleaned up application syntax

* fixed typo

* added data formatting and noa

* added dates for certificate of amalgamation

* repeated effective_date_time in business details for amalgamation application

* fixed lint issue

* fixed typo

* fixed notice of articles and removed amalgamation/nameRequest

* removed amalgamations.html from business-summary.html

* reestablished amalgamations.html

* removed completingParty from amalgamations and added from incorp

* removed incorp/bencompany from noa in amalgamationApp
* 18803 add amalgamation email

* fix small

* fix lint issue

* fix small

* fix the get_filing parts

* fix small

* fix the test

* fix lint issue

* fix lint issue

* update version
JazzarKarim and others added 27 commits March 26, 2024 09:35
* 18750-put-back-on-rules

* Updated authz
* fixed small issue in authz after sync with main

* fixed if statement order
* 20016 - alternate name update

* 20016 - alternate name update report.py

* 20016 - fix formatting issues

* 20016 - sort imports

* 20016 - remove unused imports

* 20016 - add logic to use start date for alternate name entities

* 20016 - update bnmove endpoint to work with alternate name

* 20016 - update unit tests for bnmove

* 20016 - update test case name

* 20016 - update logic to return alternate name
…te name table associations for non-SP businesses in data script (bcgov#2541)
Copy link

sonarcloud bot commented Mar 26, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
8.8% Duplication on New Code (required ≤ 3%)
E Reliability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

@PaulGarewal PaulGarewal deleted the 19828-fix-broken-unit-tests branch March 26, 2024 18:08
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.