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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Aaron Chen
erp5
Commits
917d1961
Commit
917d1961
authored
Nov 15, 2011
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark testShaCache* as expectedFailure.
parent
3d0aa28d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
bt5/erp5_web_shacache/TestTemplateItem/testShaCache.py
bt5/erp5_web_shacache/TestTemplateItem/testShaCache.py
+2
-1
bt5/erp5_web_shadir/TestTemplateItem/testShaDir.py
bt5/erp5_web_shadir/TestTemplateItem/testShaDir.py
+2
-1
bt5/networkcache_erp5/TestTemplateItem/testShaCacheExternal.py
...etworkcache_erp5/TestTemplateItem/testShaCacheExternal.py
+2
-1
No files found.
bt5/erp5_web_shacache/TestTemplateItem/testShaCache.py
View file @
917d1961
...
@@ -33,7 +33,7 @@ import httplib
...
@@ -33,7 +33,7 @@ import httplib
import
urlparse
import
urlparse
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
ShaCacheMixin
import
ShaCacheMixin
from
ShaCacheMixin
import
ShaCacheMixin
from
Products.ERP5Type.tests.backportUnittest
import
expectedFailure
class
TestShaCache
(
ShaCacheMixin
,
ERP5TypeTestCase
):
class
TestShaCache
(
ShaCacheMixin
,
ERP5TypeTestCase
):
"""
"""
...
@@ -137,6 +137,7 @@ class TestShaCache(ShaCacheMixin, ERP5TypeTestCase):
...
@@ -137,6 +137,7 @@ class TestShaCache(ShaCacheMixin, ERP5TypeTestCase):
self
.
assertEquals
(
'published'
,
document2
.
getValidationState
())
self
.
assertEquals
(
'published'
,
document2
.
getValidationState
())
self
.
assertEquals
(
'archived'
,
document
.
getValidationState
())
self
.
assertEquals
(
'archived'
,
document
.
getValidationState
())
@
expectedFailure
def
test_put_file_twice_no_tic
(
self
):
def
test_put_file_twice_no_tic
(
self
):
self
.
postFile
()
self
.
postFile
()
transaction
.
commit
()
transaction
.
commit
()
...
...
bt5/erp5_web_shadir/TestTemplateItem/testShaDir.py
View file @
917d1961
...
@@ -35,7 +35,7 @@ import transaction
...
@@ -35,7 +35,7 @@ import transaction
import
random
import
random
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
ShaDirMixin
import
ShaDirMixin
from
ShaDirMixin
import
ShaDirMixin
from
Products.ERP5Type.tests.backportUnittest
import
expectedFailure
class
TestShaDir
(
ShaDirMixin
,
ERP5TypeTestCase
):
class
TestShaDir
(
ShaDirMixin
,
ERP5TypeTestCase
):
"""
"""
...
@@ -169,6 +169,7 @@ class TestShaDir(ShaDirMixin, ERP5TypeTestCase):
...
@@ -169,6 +169,7 @@ class TestShaDir(ShaDirMixin, ERP5TypeTestCase):
self
.
assertEquals
(
1
,
len
(
information_list
))
self
.
assertEquals
(
1
,
len
(
information_list
))
self
.
assertEquals
(
json
.
dumps
(
information_list
[
0
]),
self
.
data
)
self
.
assertEquals
(
json
.
dumps
(
information_list
[
0
]),
self
.
data
)
@
expectedFailure
def
test_post_information_more_than_once_no_tic
(
self
):
def
test_post_information_more_than_once_no_tic
(
self
):
"""
"""
Check if posting information is working.
Check if posting information is working.
...
...
bt5/networkcache_erp5/TestTemplateItem/testShaCacheExternal.py
View file @
917d1961
...
@@ -35,7 +35,7 @@ from DateTime import DateTime
...
@@ -35,7 +35,7 @@ from DateTime import DateTime
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
ShaCacheMixin
import
ShaCacheMixin
from
ShaCacheMixin
import
ShaCacheMixin
from
ShaSecurityMixin
import
ShaSecurityMixin
from
ShaSecurityMixin
import
ShaSecurityMixin
from
Products.ERP5Type.tests.backportUnittest
import
expectedFailure
class
TestShaCacheExternal
(
ShaCacheMixin
,
ShaSecurityMixin
,
ERP5TypeTestCase
):
class
TestShaCacheExternal
(
ShaCacheMixin
,
ShaSecurityMixin
,
ERP5TypeTestCase
):
"""
"""
...
@@ -134,6 +134,7 @@ class TestShaCacheExternal(ShaCacheMixin, ShaSecurityMixin, ERP5TypeTestCase):
...
@@ -134,6 +134,7 @@ class TestShaCacheExternal(ShaCacheMixin, ShaSecurityMixin, ERP5TypeTestCase):
"""
"""
self
.
test_external_get
(
annonymous
=
True
)
self
.
test_external_get
(
annonymous
=
True
)
@
expectedFailure
def
test_external_post_anonymous
(
self
):
def
test_external_post_anonymous
(
self
):
"""
"""
Anonymous should not be able to POST a file.
Anonymous should not be able to POST a 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