Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5-Boxiang
Commits
5ac924a4
Commit
5ac924a4
authored
May 23, 2016
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testERP5Web: use two \n between classes as recommended by pep-0008
parent
bafc17bc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
product/ERP5/bin/genbt5list
product/ERP5/bin/genbt5list
+1
-1
product/ERP5/tests/testERP5Web.py
product/ERP5/tests/testERP5Web.py
+2
-1
No files found.
product/ERP5/bin/genbt5list
View file @
5ac924a4
#! /usr/bin/python
#! /usr/bin/
env
python
##############################################################################
##############################################################################
#
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
...
...
product/ERP5/tests/testERP5Web.py
View file @
5ac924a4
...
@@ -47,6 +47,7 @@ class DummyTraversalHook(object):
...
@@ -47,6 +47,7 @@ class DummyTraversalHook(object):
def
__call__
(
self
,
container
,
request
):
def
__call__
(
self
,
container
,
request
):
return
return
class
WebTraversalHookTestMixin
(
object
):
class
WebTraversalHookTestMixin
(
object
):
"""Mixin class to test the WebSiteTraversalHook on both websection and website.
"""Mixin class to test the WebSiteTraversalHook on both websection and website.
"""
"""
...
@@ -109,6 +110,7 @@ class TestWebSiteTraversalHook(WebTraversalHookTestMixin, ERP5TypeTestCase):
...
@@ -109,6 +110,7 @@ class TestWebSiteTraversalHook(WebTraversalHookTestMixin, ERP5TypeTestCase):
from
Products.ERP5Type.Document.WebSite
import
WebSiteTraversalHook
from
Products.ERP5Type.Document.WebSite
import
WebSiteTraversalHook
self
.
traversal_hook_class
=
WebSiteTraversalHook
self
.
traversal_hook_class
=
WebSiteTraversalHook
class
TestWebSectionTraversalHook
(
WebTraversalHookTestMixin
,
ERP5TypeTestCase
):
class
TestWebSectionTraversalHook
(
WebTraversalHookTestMixin
,
ERP5TypeTestCase
):
def
afterSetUp
(
self
):
def
afterSetUp
(
self
):
super
(
TestWebSectionTraversalHook
,
self
).
afterSetUp
()
super
(
TestWebSectionTraversalHook
,
self
).
afterSetUp
()
...
@@ -121,7 +123,6 @@ class TestWebSectionTraversalHook(WebTraversalHookTestMixin, ERP5TypeTestCase):
...
@@ -121,7 +123,6 @@ class TestWebSectionTraversalHook(WebTraversalHookTestMixin, ERP5TypeTestCase):
self
.
traversal_hook_class
=
WebSectionTraversalHook
self
.
traversal_hook_class
=
WebSectionTraversalHook
class
TestERP5Web
(
ERP5TypeTestCase
):
class
TestERP5Web
(
ERP5TypeTestCase
):
"""Test for erp5_web business template.
"""Test for erp5_web business template.
"""
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment