mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-27 23:35:01 +00:00
Keep the query-dump form of "no tenancy found" a rejection 🟩
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
e5beded920
commit
6ee560af29
1 changed files with 17 additions and 0 deletions
|
|
@ -575,3 +575,20 @@ def test_get_tenant_data_reports_a_void_property_when_abri_finds_no_tenancy(
|
|||
|
||||
# Assert
|
||||
assert result == NoTenancyFound(place_ref=PlaceRef("1004202A"))
|
||||
|
||||
|
||||
def test_get_tenant_data_still_rejects_the_query_dump_form_of_no_tenancy_found(
|
||||
client: AbriClient, mock_session: MagicMock
|
||||
) -> None:
|
||||
# Arrange: the same words, dumped as a 4GL query. Abri does not send this
|
||||
# to mean "known empty", so it must not be read as a void property.
|
||||
mock_session.post.return_value.content = _load_fixture(
|
||||
"abri_relay_getscstenantdata_relayerror_response.xml"
|
||||
)
|
||||
|
||||
# Act
|
||||
result = client.get_tenant_data(PlaceRef("1004202A"))
|
||||
|
||||
# Assert
|
||||
assert isinstance(result, AbriRequestRejected)
|
||||
assert result.message.startswith("No Tenancy Found for Query")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue