Skip to content

Commit

Permalink
MHR API manufacturer reg sub party validation update. (#1475)
Browse files Browse the repository at this point in the history
Signed-off-by: Doug Lovett <[email protected]>
  • Loading branch information
doug-lovett authored Aug 9, 2023
1 parent a4cabbf commit 0f6266b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion mhr_api/src/mhr_api/utils/manufacturer_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def validate_registration(json_data, manufacturer: MhrManufacturer):
try:
current_app.logger.debug('Performing manufacturer extra data validation.')
man_json = manufacturer.json
error_msg += validate_submitting_party(json_data, man_json)
# Use common submitting party validation (already done) - no matching on stored submitting party.
error_msg += validate_owner(json_data, man_json)
error_msg += validate_location(json_data, man_json)
error_msg += validate_description(json_data, man_json)
Expand Down
2 changes: 1 addition & 1 deletion mhr_api/src/mhr_api/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
Development release segment: .devN
"""

__version__ = '1.4.8' # pylint: disable=invalid-name
__version__ = '1.4.9' # pylint: disable=invalid-name
10 changes: 5 additions & 5 deletions mhr_api/tests/unit/api/test_registrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@
],
'submittingParty': {
'address': {
'city': 'PENTICTON',
'city': 'VICTORIA',
'country': 'CA',
'postalCode': 'V2A 7A1',
'postalCode': 'V8R 7A3',
'region': 'BC',
'street': '1704 GOVERNMENT ST.'
'street': '1722 GOVERNMENT ST.'
},
'businessName': 'REAL ENGINEERED HOMES INC',
'phoneNumber': '2507701067'
'businessName': 'REAL ENGINEERED HOMES',
'phoneNumber': '2507701066'
}
}
MANUFACTURER_ROLES = [MHR_ROLE, TRANSFER_SALE_BENEFICIARY, REGISTER_MH]
Expand Down

0 comments on commit 0f6266b

Please sign in to comment.