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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
erp5
Commits
c1010627
Commit
c1010627
authored
May 16, 2019
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testAccounting: Preserve uid generator state.
Otherwise, this test fails because of duplicate uids.
parent
680358dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
product/ERP5/tests/testAccounting.py
product/ERP5/tests/testAccounting.py
+14
-1
No files found.
product/ERP5/tests/testAccounting.py
View file @
c1010627
...
@@ -3185,7 +3185,20 @@ class TestTransactions(AccountingTestCase):
...
@@ -3185,7 +3185,20 @@ class TestTransactions(AccountingTestCase):
def
_resetIdGenerator
(
self
):
def
_resetIdGenerator
(
self
):
# clear all existing ids in portal ids
# clear all existing ids in portal ids
self
.
portal
.
portal_ids
.
clearGenerator
(
all
=
True
)
portal_ids
=
self
.
portal
.
portal_ids
# ...except uid generator
new_uid
=
portal_ids
.
generateNewIdList
(
id_generator
=
'uid'
,
id_group
=
'catalog_uid'
,
id_count
=
1
,
)
portal_ids
.
clearGenerator
(
all
=
True
)
portal_ids
.
generateNewIdList
(
id_generator
=
'uid'
,
id_group
=
'catalog_uid'
,
id_count
=
1
,
default
=
new_uid
,
)
def
test_SourceDestinationReference
(
self
):
def
test_SourceDestinationReference
(
self
):
# Check that source reference and destination reference are filled
# Check that source reference and destination reference are filled
...
...
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