Commit 4fc2eff0 authored by Romain Courteaud's avatar Romain Courteaud

slapos_rss_style: test

parent d7d9decc
......@@ -26,6 +26,7 @@ from erp5.component.test.SlapOSTestCaseMixin import SlapOSTestCaseMixinWithAbort
from DateTime import DateTime
import feedparser
from time import sleep
def getFakeSlapState():
return "destroy_requested"
......@@ -150,6 +151,7 @@ class TestSlapOSSupportRequestRSS(TestRSSSyleSkinsMixin):
self.assertEqual([item.summary for item in parsed.entries], ['I need help !'])
self.logout()
sleep(1)
self.login()
support_request.Ticket_createProjectEvent(
support_request.getTitle(), 'outgoing', 'Web Message',
......@@ -196,6 +198,7 @@ class TestSlapOSSupportRequestRSS(TestRSSSyleSkinsMixin):
self.assertEqual([item.summary for item in parsed.entries], ['I need help !'])
self.logout()
sleep(1)
self.login()
support_request.Ticket_createProjectEvent(
support_request.getTitle(), 'outgoing', 'Web Message',
......@@ -690,6 +693,7 @@ class TestSlapOSBase_getEventList(TestRSSSyleSkinsMixin):
ticket.getTitle())
# Now include a Regulatisation Request
sleep(1)
self.login()
regularisation_request = self.newRegularisationRequest(person)
self.login(person.getUserId())
......
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