Skip to content

Commit

Permalink
Handle MPL display and .use for travis tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kuanb committed Nov 24, 2017
1 parent aa66ed7 commit e2e6926
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ install:
- pip install -r requirements.txt

script:
- PYTHONPATH=. py.test
- PYTHONPATH=. MPLBACKEND="agg" py.test
6 changes: 3 additions & 3 deletions peartree/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ def get_representative_feed(file_loc: str,
else:
raise NotImplementedError('Unsupported day type string supplied.')

log(f'Selected_date: {selected_date}')
log(f'Number of trips on that date: {trip_count}')
log('Selected_date: {}'.format(selected_date))
log('Number of trips on that date: {}'.format(trip_count))

all_service_ids = '\n\t'.join(service_ids_by_date[selected_date])
log(f'\nAll related service IDs: \n\t{all_service_ids}')
log('\nAll related service IDs: \n\t{}'.format(all_service_ids))

sub = service_ids_by_date[selected_date]
feed_query = {'trips.txt': {'service_id': sub}}
Expand Down

0 comments on commit e2e6926

Please sign in to comment.