예제 #1
0
 def test_near_with_things_and_my_location(self, mock_search_near):
     things = 'restaurants'
     city = 'me'
     expected_city = 0
     data = "{} | {}".format(things, city)
     near_me.main(data)
     mock_search_near.assert_called_once_with(things, expected_city)
예제 #2
0
def do_near(self, data):
    """
    finds places near you
    -- Examples:
        restaurants near me
        museums near the eiffel tower
    """
    near_me.main(data)
예제 #3
0
def do_near(self, data):
    """
    Jarvis can find what is near you!
    -- Examples:
        restaurants near me
        museums near the eiffel tower
    """
    near_me.main(data)
예제 #4
0
def do_near(self, data):
    """
    Jarvis can find what is near you!
    -- Examples:
        restaurants near me
        museums near the eiffel tower
    """
    near_me.main(data)
예제 #5
0
 def do_near(self, data):
     """Jarvis can find what is near you!"""
     near_me.main(data)
예제 #6
0
 def test_what_to_search_where_is_passed_to_mapps(self, mock_search_near):
     data = "{} | {}".format(self.things, self.city)
     near_me.main(data)
     mock_search_near.assert_called_once_with(self.things, self.city)
예제 #7
0
 def test_what_to_search_where_is_passed_to_mapps(self, mock_search_near):
     data = "{} | {}".format(self.things, self.city)
     near_me.main(data)
     mock_search_near.assert_called_once_with(self.things, self.city)
예제 #8
0
 def test_near_with_things_and_empty_space(self, mock_search_near):
     things = 'bars'
     city = ''
     data = "{} | {}".format(things, city)
     near_me.main(data)
     mock_search_near.assert_called_once_with(things, city)
예제 #9
0
 def test_near_with_things_and_specific_city(self, mock_search_near):
     things = 'charities'
     city = 'Valencia'
     data = "{} | {}".format(things, city)
     near_me.main(data)
     mock_search_near.assert_called_once_with(things, city)