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
Léo-Paul Géneau
erp5
Commits
3d6fb7c5
Commit
3d6fb7c5
authored
Aug 07, 2024
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5: `b5list` and `title` files are text files.
parent
da6274f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bt5/erp5_forge/TestTemplateItem/portal_components/test.erp5.testTemplateTool.py
...plateItem/portal_components/test.erp5.testTemplateTool.py
+2
-2
No files found.
bt5/erp5_forge/TestTemplateItem/portal_components/test.erp5.testTemplateTool.py
View file @
3d6fb7c5
...
...
@@ -793,7 +793,7 @@ class TestTemplateTool(ERP5TypeTestCase):
bt_dir
=
"%s/%s/bt"
%
(
repository
,
kw
[
'title'
])
if
not
os
.
path
.
exists
(
bt_dir
):
os
.
makedirs
(
bt_dir
)
with
open
(
"%s/title"
%
bt_dir
,
"w
b
"
)
as
f
:
with
open
(
"%s/title"
%
bt_dir
,
"w"
)
as
f
:
f
.
write
(
kw
[
'title'
])
template
=
xml
.
createElement
(
'template'
)
template
.
setAttribute
(
'id'
,
kw
[
'title'
])
...
...
@@ -834,7 +834,7 @@ class TestTemplateTool(ERP5TypeTestCase):
createBtAndAddToRepository
(
repository
,
repo_xml
,
title
=
'bt3'
)
createBtAndAddToRepository
(
repository
,
repo_xml
,
title
=
'bt4'
)
createBtAndAddToRepository
(
repository
,
repo_xml
,
title
=
'bt5'
)
with
open
(
"%s/bt5list"
%
repository
,
"wb
"
)
as
repo_xml_fd
:
with
open
(
"%s/bt5list"
%
repository
,
"w
"
)
as
repo_xml_fd
:
repo_xml
.
writexml
(
repo_xml_fd
)
repo_xml_fd
.
close
()
...
...
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