Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
a819a8fc
Commit
a819a8fc
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
42861d94
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 @
a819a8fc
#! /usr/bin/python
#! /usr/bin/
env
python
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
...
...
product/ERP5/tests/testERP5Web.py
View file @
a819a8fc
...
...
@@ -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