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
Lukas Niegsch
erp5
Commits
61a6d987
Commit
61a6d987
authored
Jul 19, 2011
by
Lucas Carvalho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We must be able to upload the same file over and over again.
parent
5d6cbf59
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
bt5/erp5_web_shacache/TestTemplateItem/testShaCache.py
bt5/erp5_web_shacache/TestTemplateItem/testShaCache.py
+19
-0
bt5/erp5_web_shacache/bt/revision
bt5/erp5_web_shacache/bt/revision
+1
-1
No files found.
bt5/erp5_web_shacache/TestTemplateItem/testShaCache.py
View file @
61a6d987
...
...
@@ -116,3 +116,22 @@ class TestShaCache(ShaCacheMixin, ERP5TypeTestCase):
self
.
assertNotEquals
(
None
,
document
)
self
.
assertEquals
(
self
.
data
,
document
.
getData
())
def
test_put_file_twice
(
self
):
"""
Check if is allowed to put the same file twice.
"""
self
.
putFile
()
self
.
assertEquals
(
1
,
len
(
self
.
portal
.
document_module
))
document
=
self
.
portal
.
document_module
.
contentValues
()[
0
]
self
.
assertEquals
(
'Published'
,
document
.
getValidationStateTitle
())
self
.
putFile
()
self
.
assertEquals
(
2
,
len
(
self
.
portal
.
document_module
))
document2
=
self
.
portal
.
document_module
.
contentValues
()[
1
]
self
.
assertEquals
(
'Published'
,
document2
.
getValidationStateTitle
())
self
.
assertEquals
(
'Archived'
,
document
.
getValidationStateTitle
())
bt5/erp5_web_shacache/bt/revision
View file @
61a6d987
44
\ No newline at end of file
45
\ No newline at end of file
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