~submarine/unity-scope-openweathermap/bump-unity-deps

« back to all changes in this revision

Viewing changes to tests/test_openweathermap.py

  • Committer: David Callé
  • Date: 2013-03-14 00:40:35 UTC
  • Revision ID: davidc@framli.eu-20130314004035-dwr68lzf6flxn0zh
Reduce mock data to have consistent results, regardless of the system time

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
        self.scope_module.SEARCH_URI = ['file:tests/data/mock_openweathermap_pass#', 
43
43
                                        'file:tests/data/mock_openweathermap_city_pass#']
44
44
        expected_results = ['http://openweathermap.org/city/3026083', 
45
 
                            'http://openweathermap.org/img/w/13n.png',
 
45
                            'weather-snow',
46
46
                            'Today\n0°C/33°F',
47
47
                            'heavy snow',
48
48
                            'http://openweathermap.org/city/3026083',
49
 
                            'http://openweathermap.org/img/w/02n.png',
50
 
                            'Tomorrow\n254°C/490°F',
51
 
                            'sky is clear']
 
49
                            'weather-clouds',
 
50
                            'Tomorrow\n257°C/494°F',
 
51
                            'scattered clouds']
52
52
        results = []
53
53
        for s in ['query']:
54
54
            result_set = self.perform_query(s)