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
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
Frederic Thoma
erp5
Commits
ea5e3ed7
Commit
ea5e3ed7
authored
3 years ago
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: refix getLogDirectoryPath
parent
5fb94a02
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
tests/__init__.py
tests/__init__.py
+1
-5
No files found.
tests/__init__.py
View file @
ea5e3ed7
...
@@ -227,13 +227,9 @@ class ERP5BusinessTemplateCodingStyleTestSuite(_ERP5):
...
@@ -227,13 +227,9 @@ class ERP5BusinessTemplateCodingStyleTestSuite(_ERP5):
return
self
.
runUnitTest
(
'CodingStyleTest'
,
TESTED_BUSINESS_TEMPLATE
=
full_test
)
return
self
.
runUnitTest
(
'CodingStyleTest'
,
TESTED_BUSINESS_TEMPLATE
=
full_test
)
def
getLogDirectoryPath
(
self
,
*
args
,
**
kw
):
def
getLogDirectoryPath
(
self
,
*
args
,
**
kw
):
if
full_test
.
split
(
'.'
)[
0
]
==
"Python3Style"
:
tested
=
kw
[
'TESTED_PRODUCT'
]
else
:
tested
=
kw
[
'TESTED_BUSINESS_TEMPLATE'
]
log_directory
=
os
.
path
.
join
(
log_directory
=
os
.
path
.
join
(
self
.
log_directory
,
self
.
log_directory
,
'{}-{}'
.
format
(
args
[
-
1
]
,
tested
))
'{}-{}'
.
format
(
args
[
-
1
]
,
kw
.
get
(
'TESTED_BUSINESS_TEMPLATE'
,
kw
.
get
(
'TESTED_PRODUCT'
))
))
os
.
mkdir
(
log_directory
)
os
.
mkdir
(
log_directory
)
return
log_directory
return
log_directory
...
...
This diff is collapsed.
Click to expand it.
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