forked from organicmaps/organicmaps
Added the python support for the test.
This commit is contained in:
parent
ae82030fe9
commit
af0ec76ede
2 changed files with 29 additions and 0 deletions
|
@ -141,6 +141,7 @@ class ResponseProvider:
|
|||
"/id": self.my_id,
|
||||
"/partners/time": self.partners_time,
|
||||
"/partners/price": self.partners_price,
|
||||
"/booking/min_price": self.partners_minprice,
|
||||
}[url]()
|
||||
except:
|
||||
return self.test_404()
|
||||
|
@ -216,6 +217,9 @@ class ResponseProvider:
|
|||
return Payload(jsons.PARTNERS_PRICE)
|
||||
|
||||
|
||||
def partners_minprice(self):
|
||||
return Payload(jsons.PARTNERS_MINPRICE)
|
||||
|
||||
def kill(self):
|
||||
logging.debug("Kill called in ResponseProvider")
|
||||
self.delegate.kill()
|
||||
|
|
|
@ -183,3 +183,28 @@ PARTNERS_TIME = """
|
|||
]
|
||||
}
|
||||
"""
|
||||
|
||||
PARTNERS_MINPRICE = """
|
||||
[
|
||||
{
|
||||
"hotel_id":"0000000",
|
||||
"currency_code":"USD",
|
||||
"max_price":"5000.00",
|
||||
"ranking":1,
|
||||
"min_price":"250.00",
|
||||
"available_rooms":37,
|
||||
"other_currency": [
|
||||
{
|
||||
"currency_code":"RUB",
|
||||
"max_price":"250000.00",
|
||||
"min_price":"15000.00"
|
||||
},
|
||||
{
|
||||
"currency_code":"ISK",
|
||||
"max_price":"500000.00",
|
||||
"min_price":"30000.00"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
"""
|
Loading…
Add table
Reference in a new issue