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
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
Mukul
erp5
Commits
3663dbab
Commit
3663dbab
authored
Jan 08, 2018
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_corporate_identity: remove softinst references
parent
23d2d9f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
bt5/erp5_corporate_identity/TestTemplateItem/portal_components/test.erp5.testCorporateIdentityTemplates.py
...al_components/test.erp5.testCorporateIdentityTemplates.py
+6
-8
bt5/erp5_corporate_identity/TestTemplateItem/portal_components/test.erp5.testCorporateIdentityTemplates.xml
...l_components/test.erp5.testCorporateIdentityTemplates.xml
+1
-0
No files found.
bt5/erp5_corporate_identity/TestTemplateItem/portal_components/test.erp5.testCorporateIdentityTemplates.py
View file @
3663dbab
...
@@ -37,9 +37,6 @@ import re
...
@@ -37,9 +37,6 @@ import re
import
io
import
io
import
base64
import
base64
host_url
=
r"https?://localhost(?::[0-9]+)?/[^/]+/"
test_url
=
"https://softinst73908.host.vifib.net/erp5/"
def
changeSkin
(
skin_name
):
def
changeSkin
(
skin_name
):
"""
"""
Change skin for following commands and attribute resolution.
Change skin for following commands and attribute resolution.
...
@@ -225,11 +222,11 @@ class TestCorporateIdentityTemplates(ERP5TypeTestCase):
...
@@ -225,11 +222,11 @@ class TestCorporateIdentityTemplates(ERP5TypeTestCase):
getattr
(
test_page
,
kw
.
get
(
"test_method"
)),
getattr
(
test_page
,
kw
.
get
(
"test_method"
)),
**
kw
**
kw
)
)
html
=
re
.
sub
(
host_url
,
test_url
,
html
)
# update html test files or run tests
# update html test files or run tests
if
dump
:
if
dump
:
expected_page
.
edit
(
text_content
=
html
)
expected_page
.
edit
(
text_content
=
html
)
self
.
tic
()
self
.
assertEquals
(
html
,
expected_page
.
getData
())
self
.
assertEquals
(
html
,
expected_page
.
getData
())
def
runPdfTestPattern
(
self
,
id1
,
id2
,
id3
,
**
kw
):
def
runPdfTestPattern
(
self
,
id1
,
id2
,
id3
,
**
kw
):
...
@@ -264,6 +261,7 @@ class TestCorporateIdentityTemplates(ERP5TypeTestCase):
...
@@ -264,6 +261,7 @@ class TestCorporateIdentityTemplates(ERP5TypeTestCase):
# update bmp files
# update bmp files
if
dump
:
if
dump
:
expected_image
.
setData
(
bmp
)
expected_image
.
setData
(
bmp
)
self
.
tic
()
self
.
assertImageRenderingEquals
(
str
(
bmp
),
str
(
expected_image
.
getData
()))
self
.
assertImageRenderingEquals
(
str
(
bmp
),
str
(
expected_image
.
getData
()))
##############################################################################
##############################################################################
...
@@ -557,7 +555,7 @@ class TestCorporateIdentityTemplates(ERP5TypeTestCase):
...
@@ -557,7 +555,7 @@ class TestCorporateIdentityTemplates(ERP5TypeTestCase):
use_skin
=
"Letter"
use_skin
=
"Letter"
)
)
)
)
@
changeSkin
(
'Letter'
)
@
changeSkin
(
'Letter'
)
def
test_htmlLetterFollowUpContributor
(
self
):
def
test_htmlLetterFollowUpContributor
(
self
):
"""
"""
...
@@ -692,7 +690,7 @@ class TestCorporateIdentityTemplates(ERP5TypeTestCase):
...
@@ -692,7 +690,7 @@ class TestCorporateIdentityTemplates(ERP5TypeTestCase):
subfield_field_override_date_day
=
"31"
subfield_field_override_date_day
=
"31"
)
)
)
)
@
changeSkin
(
'Letter'
)
@
changeSkin
(
'Letter'
)
def
test_pdfLetterLocaliserHeadDisplay
(
self
):
def
test_pdfLetterLocaliserHeadDisplay
(
self
):
"""
"""
...
@@ -751,7 +749,7 @@ class TestCorporateIdentityTemplates(ERP5TypeTestCase):
...
@@ -751,7 +749,7 @@ class TestCorporateIdentityTemplates(ERP5TypeTestCase):
use_skin
=
"Leaflet"
use_skin
=
"Leaflet"
)
)
)
)
@
changeSkin
(
'Leaflet'
)
@
changeSkin
(
'Leaflet'
)
def
test_htmlLeafletOverrides
(
self
):
def
test_htmlLeafletOverrides
(
self
):
"""
"""
...
@@ -789,7 +787,7 @@ class TestCorporateIdentityTemplates(ERP5TypeTestCase):
...
@@ -789,7 +787,7 @@ class TestCorporateIdentityTemplates(ERP5TypeTestCase):
use_skin
=
"Leaflet"
use_skin
=
"Leaflet"
)
)
)
)
@
changeSkin
(
'Leaflet'
)
@
changeSkin
(
'Leaflet'
)
def
test_pdfLeaflet
(
self
):
def
test_pdfLeaflet
(
self
):
"""
"""
...
...
bt5/erp5_corporate_identity/TestTemplateItem/portal_components/test.erp5.testCorporateIdentityTemplates.xml
View file @
3663dbab
...
@@ -47,6 +47,7 @@
...
@@ -47,6 +47,7 @@
<string>
W: 30, 0: Unused createZODBPythonScript imported from Products.ERP5Type.tests.utils (unused-import)
</string>
<string>
W: 30, 0: Unused createZODBPythonScript imported from Products.ERP5Type.tests.utils (unused-import)
</string>
<string>
W: 32, 0: Unused import transaction (unused-import)
</string>
<string>
W: 32, 0: Unused import transaction (unused-import)
</string>
<string>
W: 33, 0: Unused import functools (unused-import)
</string>
<string>
W: 33, 0: Unused import functools (unused-import)
</string>
<string>
W: 36, 0: Unused import re (unused-import)
</string>
</tuple>
</tuple>
</value>
</value>
</item>
</item>
...
...
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