mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Flake 8
This commit is contained in:
parent
ab77840b5e
commit
7bc6c41164
3 changed files with 12 additions and 9 deletions
|
|
@ -13,7 +13,10 @@ from vdirsyncer.utils import expand_path
|
|||
import subprocess
|
||||
import os
|
||||
|
||||
owncloud_repo = expand_path(os.path.join(os.path.dirname(__file__), '../../../owncloud-testserver/'))
|
||||
owncloud_repo = expand_path(os.path.join(
|
||||
os.path.dirname(__file__), '../../../owncloud-testserver/'
|
||||
))
|
||||
|
||||
|
||||
class ServerMixin(object):
|
||||
storage_class = None
|
||||
|
|
@ -36,4 +39,5 @@ class ServerMixin(object):
|
|||
'test5', 'test6', 'test7', 'test8', 'test9',
|
||||
'test10')
|
||||
|
||||
return {'url': url, 'collection': collection, 'username': 'asdf', 'password': 'asdf'}
|
||||
return {'url': url, 'collection': collection,
|
||||
'username': 'asdf', 'password': 'asdf'}
|
||||
|
|
|
|||
|
|
@ -22,8 +22,6 @@ import mock
|
|||
from werkzeug.test import Client
|
||||
from werkzeug.wrappers import BaseResponse as WerkzeugResponse
|
||||
|
||||
import vdirsyncer.exceptions as exceptions
|
||||
from vdirsyncer.storage.base import Item
|
||||
|
||||
RADICALE_SCHEMA = '''
|
||||
create table collection (
|
||||
|
|
@ -120,6 +118,7 @@ class Response(object):
|
|||
|
||||
def wsgi_setup(app):
|
||||
c = Client(app, WerkzeugResponse)
|
||||
|
||||
def x(session, method, url, data=None, headers=None, **kw):
|
||||
path = urlparse.urlparse(url).path
|
||||
assert isinstance(data, bytes) or data is None
|
||||
|
|
|
|||
Loading…
Reference in a new issue