Commit 72a16c4a authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Update test to ensure we are on Hal Skin Selection.

parent 7db8fcc5
Pipeline #9624 failed with stage
in 0 seconds
...@@ -131,6 +131,7 @@ class TestSlapOSHalJsonStyleMixin(SlapOSTestCaseMixinWithAbort): ...@@ -131,6 +131,7 @@ class TestSlapOSHalJsonStyleMixin(SlapOSTestCaseMixinWithAbort):
software_installation.validate() software_installation.validate()
self.tic() self.tic()
self.changeSkin('Hal')
return software_installation return software_installation
class TestHostingSubscription_getNewsDict(TestSlapOSHalJsonStyleMixin): class TestHostingSubscription_getNewsDict(TestSlapOSHalJsonStyleMixin):
...@@ -175,6 +176,7 @@ class TestHostingSubscription_getNewsDict(TestSlapOSHalJsonStyleMixin): ...@@ -175,6 +176,7 @@ class TestHostingSubscription_getNewsDict(TestSlapOSHalJsonStyleMixin):
instance = self._makeInstance() instance = self._makeInstance()
instance.edit(specialise_value=hosting_subscription) instance.edit(specialise_value=hosting_subscription)
self.tic() self.tic()
self.changeSkin('Hal')
news_dict = hosting_subscription.HostingSubscription_getNewsDict() news_dict = hosting_subscription.HostingSubscription_getNewsDict()
expected_news_dict = {'instance': [{'no_data': 1, expected_news_dict = {'instance': [{'no_data': 1,
'text': '#error no data found for %s' % instance.getReference(), 'text': '#error no data found for %s' % instance.getReference(),
...@@ -188,6 +190,7 @@ class TestHostingSubscription_getNewsDict(TestSlapOSHalJsonStyleMixin): ...@@ -188,6 +190,7 @@ class TestHostingSubscription_getNewsDict(TestSlapOSHalJsonStyleMixin):
instance = self._makeSlaveInstance() instance = self._makeSlaveInstance()
instance.edit(specialise_value=hosting_subscription) instance.edit(specialise_value=hosting_subscription)
self.tic() self.tic()
self.changeSkin('Hal')
news_dict = hosting_subscription.HostingSubscription_getNewsDict() news_dict = hosting_subscription.HostingSubscription_getNewsDict()
expected_news_dict = {'instance': []} expected_news_dict = {'instance': []}
self.assertEquals(news_dict, expected_news_dict) self.assertEquals(news_dict, expected_news_dict)
...@@ -202,6 +205,7 @@ class TestHostingSubscription_getNewsDict(TestSlapOSHalJsonStyleMixin): ...@@ -202,6 +205,7 @@ class TestHostingSubscription_getNewsDict(TestSlapOSHalJsonStyleMixin):
instance0.edit(specialise_value=hosting_subscription) instance0.edit(specialise_value=hosting_subscription)
self.tic() self.tic()
self.changeSkin('Hal')
news_dict = hosting_subscription.HostingSubscription_getNewsDict() news_dict = hosting_subscription.HostingSubscription_getNewsDict()
expected_news_dict = {'instance': [{'no_data': 1, expected_news_dict = {'instance': [{'no_data': 1,
'text': '#error no data found for %s' % instance0.getReference(), 'text': '#error no data found for %s' % instance0.getReference(),
......
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