Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
erp5_fork
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.
...
...
product/ERP5/tests/testERP5Web.py
View file @
5ac924a4
...
...
@@ -47,6 +47,7 @@ class DummyTraversalHook(object):
def
__call__
(
self
,
container
,
request
):
return
class
WebTraversalHookTestMixin
(
object
):
"""Mixin class to test the WebSiteTraversalHook on both websection and website.
"""
...
...
@@ -109,6 +110,7 @@ class TestWebSiteTraversalHook(WebTraversalHookTestMixin, ERP5TypeTestCase):
from
Products.ERP5Type.Document.WebSite
import
WebSiteTraversalHook
self
.
traversal_hook_class
=
WebSiteTraversalHook
class
TestWebSectionTraversalHook
(
WebTraversalHookTestMixin
,
ERP5TypeTestCase
):
def
afterSetUp
(
self
):
super
(
TestWebSectionTraversalHook
,
self
).
afterSetUp
()
...
...
@@ -121,7 +123,6 @@ class TestWebSectionTraversalHook(WebTraversalHookTestMixin, ERP5TypeTestCase):
self
.
traversal_hook_class
=
WebSectionTraversalHook
class
TestERP5Web
(
ERP5TypeTestCase
):
"""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