Skip to content

Commit

Permalink
Fixed escape sequence warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzeman committed Oct 5, 2018
1 parent d2ada3a commit 4f03649
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/core/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ def unknown(url, request):
return httmock.response(501, request=request)


@httmock.urlmatch(netloc='api.trakt.tv', method='GET', path='/calendars/all/\w+/\d{4}-\d{2}-\d{2}(/\d{1,2})?')
@httmock.urlmatch(netloc='api.trakt.tv', method='GET', path=r'/calendars/all/\w+/\d{4}-\d{2}-\d{2}(/\d{1,2})?')
def calendars_all_period(url, request):
return fixtures(url, request)


@httmock.urlmatch(netloc='api.trakt.tv', method='GET', path='/calendars/my/\w+')
@httmock.urlmatch(netloc='api.trakt.tv', method='GET', path=r'/calendars/my/\w+')
@authenticated
def calendars_my(url, request):
return fixtures(url, request)
Expand Down Expand Up @@ -381,13 +381,13 @@ def scrobble_stop(url, request):
)


@httmock.urlmatch(netloc='api.trakt.tv', method='GET', path='/sync/\w+')
@httmock.urlmatch(netloc='api.trakt.tv', method='GET', path=r'/sync/\w+')
@authenticated
def sync_get(url, request):
return fixtures(url, request)


@httmock.urlmatch(netloc='api.trakt.tv', method='DELETE', path='/sync/playback/\d+')
@httmock.urlmatch(netloc='api.trakt.tv', method='DELETE', path=r'/sync/playback/\d+')
@authenticated
def sync_playback_delete(url, request):
return httmock.response(204, request=request)

0 comments on commit 4f03649

Please sign in to comment.