Ejemplo n.º 1
0
 def test_yelp_presenter_returns_no_rating(self):
     raw_yelp_response = {}
     parsed_yelp_response = ParsedYelpResponse(raw_yelp_response)
     presenter = PizzaPlacePresenter(self.pizza_place, parsed_yelp_response)
     self.assertEquals(presenter.pizza_place_rating(), "No Rating")
 def test_yelp_presenter_returns_no_rating(self):
   raw_yelp_response = {}
   parsed_yelp_response = ParsedYelpResponse(raw_yelp_response)
   presenter = PizzaPlacePresenter(self.pizza_place, parsed_yelp_response)
   self.assertEquals(presenter.pizza_place_rating(), "No Rating")
Ejemplo n.º 3
0
 def test_yelp_presenter_rounds_yelp_review_down(self):
     raw_yelp_response = {'rating': 4.5}
     parsed_yelp_response = ParsedYelpResponse(raw_yelp_response)
     presenter = PizzaPlacePresenter(self.pizza_place, parsed_yelp_response)
     self.assertEquals(presenter.pizza_place_rating(), "🍕🍕🍕🍕")
 def test_yelp_presenter_rounds_yelp_review_down(self):
   raw_yelp_response = {'rating': 4.5}
   parsed_yelp_response = ParsedYelpResponse(raw_yelp_response)
   presenter = PizzaPlacePresenter(self.pizza_place, parsed_yelp_response)
   self.assertEquals(presenter.pizza_place_rating(), "🍕🍕🍕🍕")