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
1
Issues
1
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
Roque
erp5
Commits
b5bf2cb1
Commit
b5bf2cb1
authored
Apr 21, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: rename testUpgradeInstanceWithOldDataFs "legacy workflow"
parent
0c539b1a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
product/ERP5Type/tests/ERP5TypeTestSuite.py
product/ERP5Type/tests/ERP5TypeTestSuite.py
+2
-1
product/ERP5Type/tests/testUpgradeInstanceWithOldDataFsLegacyWorkflow.py
...e/tests/testUpgradeInstanceWithOldDataFsLegacyWorkflow.py
+2
-2
tests/__init__.py
tests/__init__.py
+1
-1
No files found.
product/ERP5Type/tests/ERP5TypeTestSuite.py
View file @
b5bf2cb1
...
@@ -52,7 +52,8 @@ class ERP5TypeTestSuite(TestSuite):
...
@@ -52,7 +52,8 @@ class ERP5TypeTestSuite(TestSuite):
args = ("
--
firefox_bin
=%
s
" % firefox_bin,) + args
args = ("
--
firefox_bin
=%
s
" % firefox_bin,) + args
if xvfb_bin:
if xvfb_bin:
args = ("
--
xvfb_bin
=%
s
" % xvfb_bin,) + args
args = ("
--
xvfb_bin
=%
s
" % xvfb_bin,) + args
if 'testUpgradeInstanceWithOldDataFs' in args:
if ('testUpgradeInstanceWithOldDataFs' in args
or 'testUpgradeInstanceWithOldDataFsLegacyWorkflow' in args):
# our reference Data.fs uses `CONNECTION_STRING_REPLACED_BY_TEST_INIT_______________________________`
# our reference Data.fs uses `CONNECTION_STRING_REPLACED_BY_TEST_INIT_______________________________`
# as a connection string. Before we start, replace this by the connection string
# as a connection string. Before we start, replace this by the connection string
# that this test node is using.
# that this test node is using.
...
...
product/ERP5Type/tests/testUpgradeInstanceWithOldDataFs.py
→
product/ERP5Type/tests/testUpgradeInstanceWithOldDataFs
LegacyWorkflow
.py
View file @
b5bf2cb1
...
@@ -33,7 +33,7 @@ import urllib
...
@@ -33,7 +33,7 @@ import urllib
import
httplib
import
httplib
class
TestUpgradeInstanceWithOldDataFs
(
ERP5TypeTestCase
):
class
TestUpgradeInstanceWithOldDataFs
WithLegacyWorkflow
(
ERP5TypeTestCase
):
def
getBusinessTemplateList
(
self
):
def
getBusinessTemplateList
(
self
):
return
(
'erp5_core_proxy_field_legacy'
,
return
(
'erp5_core_proxy_field_legacy'
,
...
@@ -155,5 +155,5 @@ class TestUpgradeInstanceWithOldDataFs(ERP5TypeTestCase):
...
@@ -155,5 +155,5 @@ class TestUpgradeInstanceWithOldDataFs(ERP5TypeTestCase):
def
test_suite
():
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
=
unittest
.
TestSuite
()
if
WITH_LEGACY_WORKFLOW
:
if
WITH_LEGACY_WORKFLOW
:
suite
.
addTest
(
unittest
.
makeSuite
(
TestUpgradeInstanceWithOldDataFs
))
suite
.
addTest
(
unittest
.
makeSuite
(
TestUpgradeInstanceWithOldDataFs
WithLegacyWorkflow
))
return
suite
return
suite
tests/__init__.py
View file @
b5bf2cb1
...
@@ -105,7 +105,7 @@ class ERP5(_ERP5):
...
@@ -105,7 +105,7 @@ class ERP5(_ERP5):
return
self
.
runUnitTest
(
'--load'
,
'--save'
,
'--with_wendelin_core'
,
full_test
)
return
self
.
runUnitTest
(
'--load'
,
'--save'
,
'--with_wendelin_core'
,
full_test
)
elif
test
.
startswith
(
'testFunctional'
):
elif
test
.
startswith
(
'testFunctional'
):
return
self
.
_updateFunctionalTestResponse
(
self
.
runUnitTest
(
full_test
))
return
self
.
_updateFunctionalTestResponse
(
self
.
runUnitTest
(
full_test
))
elif
test
==
'testUpgradeInstanceWithOldDataFs'
:
elif
test
.
startswith
(
'testUpgradeInstanceWithOldDataFs'
)
:
old_data_path
=
None
old_data_path
=
None
for
path
in
sys
.
path
:
for
path
in
sys
.
path
:
if
path
.
endswith
(
'/erp5-bin'
):
if
path
.
endswith
(
'/erp5-bin'
):
...
...
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