def test_get_manufacturer_details_by_partial_name( self, typed_client: TypedClient, responses): details: List[ ManufacturerDetail] = typed_client.get_manufacturer_details( "METRO") assert details[0].manufacturer_id == 3382 assert details[0].manufacturer == "NICHIBEI METROPAGES, INC." assert details[0].manufacturer_common_name is None
def test_get_manufacturer_details_name(self, typed_client: TypedClient, responses): details: List[ ManufacturerDetail] = typed_client.get_manufacturer_details( "Honda") assert details[0].manufacturer_id == 987 assert details[0].manufacturer == "HONDA MOTOR CO., LTD" assert details[0].manufacturer_common_name == "Honda"
def test_get_manufacturer_details(self, typed_client: TypedClient, responses): details: List[ ManufacturerDetail] = typed_client.get_manufacturer_details(988) assert len(details) == 1 honda = details[0] assert honda.manufacturer_id == 988 assert (honda.manufacturer == "HONDA DEVELOPMENT & MANUFACTURING OF AMERICA, LLC") assert honda.manufacturer_common_name == "Honda" assert honda.manufacturer_types is not None if honda.manufacturer_types is not None: assert honda.manufacturer_types[ 0].name == "Completed Vehicle Manufacturer"