Commit b103fce0 authored by Jérome Perrin's avatar Jérome Perrin

dms: pylint

parent 0c59d2fe
......@@ -66,7 +66,6 @@ from threading import Thread
import six.moves.http_client
from six.moves.urllib.request import urlopen
from six.moves.urllib.parse import urlencode
import difflib
import re
from AccessControl import Unauthorized
from Products.ERP5Type import Permissions
......@@ -90,7 +89,7 @@ def makeFilePath(name):
def getFileSize(name):
path = makeFilePath(name)
with open(path, "rb") as f:
return len(f.read())
return len(f.read())
class DocumentUploadTestCase(ERP5TypeTestCase):
......
......@@ -121,7 +121,7 @@ class TestERP5WebWithDms(ERP5TypeTestCase, ZopeTestCase.Functional):
def getTitle(self):
return "ERP5WebWithDms"
def login(self):
def login(self, *args, **kw):
uf = self.getPortal().acl_users
uf._doAddUser(self.manager_username, self.manager_password, ['Manager'], [])
user = uf.getUserById(self.manager_username).__of__(uf)
......
......@@ -28,7 +28,6 @@
#
##############################################################################
import unittest
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.utils import FileUpload
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment