Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Zverev <zverik@textual.ru>2016-10-19 17:13:36 +0300
committerIlya Zverev <zverik@textual.ru>2016-10-19 17:13:36 +0300
commit346750eb2313ffbd86b6a91be77f5659422b391f (patch)
tree288115062b78c95a42ae8d6ffaae98acb2d1d52c /partners_api
parentd27ed175d5e7e5f41c00111a5d7bb90f2c9d85e6 (diff)
[tests] Replace hotel id for tests
Diffstat (limited to 'partners_api')
-rw-r--r--partners_api/partners_api_tests/booking_tests.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/partners_api/partners_api_tests/booking_tests.cpp b/partners_api/partners_api_tests/booking_tests.cpp
index 1af991dcee..9d055a9fe3 100644
--- a/partners_api/partners_api_tests/booking_tests.cpp
+++ b/partners_api/partners_api_tests/booking_tests.cpp
@@ -13,11 +13,12 @@ UNIT_TEST(Booking_SmokeTest)
UNIT_TEST(Booking_GetMinPrice)
{
BookingApi api;
+ constexpr string kHotelId = "245721"; // Izmailovo Gamma, 996 rooms
{
string price;
string currency;
- api.GetMinPrice("10340", BookingApi::kDefaultCurrency,
+ api.GetMinPrice(kHotelId, BookingApi::kDefaultCurrency,
[&price, &currency](string const & val, string const & curr)
{
price = val;
@@ -28,13 +29,13 @@ UNIT_TEST(Booking_GetMinPrice)
TEST(!price.empty(), ());
TEST(!currency.empty(), ());
- TEST_EQUAL(currency, "EUR", ());
+ TEST_EQUAL(currency, "RUB", ());
}
{
string price;
string currency;
- api.GetMinPrice("10340", "RUB", [&price, &currency](string const & val, string const & curr)
+ api.GetMinPrice(kHotelId, "EUR", [&price, &currency](string const & val, string const & curr)
{
price = val;
currency = curr;
@@ -44,13 +45,13 @@ UNIT_TEST(Booking_GetMinPrice)
TEST(!price.empty(), ());
TEST(!currency.empty(), ());
- TEST_EQUAL(currency, "RUB", ());
+ TEST_EQUAL(currency, "EUR", ());
}
{
string price;
string currency;
- api.GetMinPrice("10340", "ISK", [&price, &currency](string const & val, string const & curr)
+ api.GetMinPrice(kHotelId, "ISK", [&price, &currency](string const & val, string const & curr)
{
price = val;
currency = curr;