Commit 917d1961 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Mark testShaCache* as expectedFailure.

parent 3d0aa28d
......@@ -33,7 +33,7 @@ import httplib
import urlparse
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from ShaCacheMixin import ShaCacheMixin
from Products.ERP5Type.tests.backportUnittest import expectedFailure
class TestShaCache(ShaCacheMixin, ERP5TypeTestCase):
"""
......@@ -137,6 +137,7 @@ class TestShaCache(ShaCacheMixin, ERP5TypeTestCase):
self.assertEquals('published', document2.getValidationState())
self.assertEquals('archived', document.getValidationState())
@expectedFailure
def test_put_file_twice_no_tic(self):
self.postFile()
transaction.commit()
......
......@@ -35,7 +35,7 @@ import transaction
import random
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from ShaDirMixin import ShaDirMixin
from Products.ERP5Type.tests.backportUnittest import expectedFailure
class TestShaDir(ShaDirMixin, ERP5TypeTestCase):
"""
......@@ -169,6 +169,7 @@ class TestShaDir(ShaDirMixin, ERP5TypeTestCase):
self.assertEquals(1, len(information_list))
self.assertEquals(json.dumps(information_list[0]), self.data)
@expectedFailure
def test_post_information_more_than_once_no_tic(self):
"""
Check if posting information is working.
......
......@@ -35,7 +35,7 @@ from DateTime import DateTime
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from ShaCacheMixin import ShaCacheMixin
from ShaSecurityMixin import ShaSecurityMixin
from Products.ERP5Type.tests.backportUnittest import expectedFailure
class TestShaCacheExternal(ShaCacheMixin, ShaSecurityMixin, ERP5TypeTestCase):
"""
......@@ -134,6 +134,7 @@ class TestShaCacheExternal(ShaCacheMixin, ShaSecurityMixin, ERP5TypeTestCase):
"""
self.test_external_get(annonymous=True)
@expectedFailure
def test_external_post_anonymous(self):
"""
Anonymous should not be able to POST a file.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment