diff options
author | Ilya Zverev <zverik@textual.ru> | 2016-10-19 17:13:36 +0300 |
---|---|---|
committer | Ilya Zverev <zverik@textual.ru> | 2016-10-19 17:13:36 +0300 |
commit | 346750eb2313ffbd86b6a91be77f5659422b391f (patch) | |
tree | 288115062b78c95a42ae8d6ffaae98acb2d1d52c /partners_api | |
parent | d27ed175d5e7e5f41c00111a5d7bb90f2c9d85e6 (diff) |
[tests] Replace hotel id for tests
Diffstat (limited to 'partners_api')
-rw-r--r-- | partners_api/partners_api_tests/booking_tests.cpp | 11 |
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, ¤cy](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, ¤cy](string const & val, string const & curr) + api.GetMinPrice(kHotelId, "EUR", [&price, ¤cy](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, ¤cy](string const & val, string const & curr) + api.GetMinPrice(kHotelId, "ISK", [&price, ¤cy](string const & val, string const & curr) { price = val; currency = curr; |