Commit 898399a6 authored by Jérome Perrin's avatar Jérome Perrin

dms: pylint

parent 8e151c0f
......@@ -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)
......@@ -153,7 +153,6 @@ class TestERP5WebWithDms(ERP5TypeTestCase, ZopeTestCase.Functional):
self.tic()
def beforeTearDown(self):
return
self.clearModule(self.portal.web_site_module)
self.clearModule(self.portal.web_page_module)
......
......@@ -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