Commit 12a5783f authored by Jérome Perrin's avatar Jérome Perrin

dms: pylint

parent 6f9ba5e2
...@@ -66,7 +66,6 @@ from threading import Thread ...@@ -66,7 +66,6 @@ from threading import Thread
import six.moves.http_client import six.moves.http_client
from six.moves.urllib.request import urlopen from six.moves.urllib.request import urlopen
from six.moves.urllib.parse import urlencode from six.moves.urllib.parse import urlencode
import difflib
import re import re
from AccessControl import Unauthorized from AccessControl import Unauthorized
from Products.ERP5Type import Permissions from Products.ERP5Type import Permissions
...@@ -90,7 +89,7 @@ def makeFilePath(name): ...@@ -90,7 +89,7 @@ def makeFilePath(name):
def getFileSize(name): def getFileSize(name):
path = makeFilePath(name) path = makeFilePath(name)
with open(path, "rb") as f: with open(path, "rb") as f:
return len(f.read()) return len(f.read())
class DocumentUploadTestCase(ERP5TypeTestCase): class DocumentUploadTestCase(ERP5TypeTestCase):
......
...@@ -121,7 +121,7 @@ class TestERP5WebWithDms(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -121,7 +121,7 @@ class TestERP5WebWithDms(ERP5TypeTestCase, ZopeTestCase.Functional):
def getTitle(self): def getTitle(self):
return "ERP5WebWithDms" return "ERP5WebWithDms"
def login(self): def login(self, *args, **kw):
uf = self.getPortal().acl_users uf = self.getPortal().acl_users
uf._doAddUser(self.manager_username, self.manager_password, ['Manager'], []) uf._doAddUser(self.manager_username, self.manager_password, ['Manager'], [])
user = uf.getUserById(self.manager_username).__of__(uf) user = uf.getUserById(self.manager_username).__of__(uf)
...@@ -153,7 +153,6 @@ class TestERP5WebWithDms(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -153,7 +153,6 @@ class TestERP5WebWithDms(ERP5TypeTestCase, ZopeTestCase.Functional):
self.tic() self.tic()
def beforeTearDown(self): def beforeTearDown(self):
return
self.clearModule(self.portal.web_site_module) self.clearModule(self.portal.web_site_module)
self.clearModule(self.portal.web_page_module) self.clearModule(self.portal.web_page_module)
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
# #
############################################################################## ##############################################################################
import unittest
import os import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.utils import FileUpload 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