From 0d0623419cf5d26926b0801deb9234ad8530a2a7 Mon Sep 17 00:00:00 2001
From: Rafael Monnerat <rafael@nexedi.com>
Date: Thu, 26 May 2022 17:08:54 +0200
Subject: [PATCH] slapos_jio: Ignore translation_data and website from the
 tests

 The site and translation data is updated after the installation,
 causing the delta. For now we ignore it and we update translation
 later.
---
 .../portal_components/test.erp5.testSlapOSCodingStyle.py    | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSCodingStyle.py b/master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSCodingStyle.py
index fbb8f63e0..a3f982102 100644
--- a/master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSCodingStyle.py
+++ b/master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSCodingStyle.py
@@ -48,6 +48,12 @@ def makeTestSlapOSCodingStyleTestCase(tested_business_template):
       # to check re-export.
       slapos_cloud/PreferenceTemplateItem/portal_preferences/slapos_default_system_preference.xml
       slapos_cloud/PreferenceTemplateItem/portal_preferences/slapos_default_site_preference.xml
+
+      # WebSite is updated after the installation to re-generate the translation data.
+      # This list should be reconsider later so we can keep information accurated.
+      slapos_jio/PathTemplateItem/web_site_module/hostingjs.xml
+      slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_translation_data_js.js
+      slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_translation_data_js.xml
       """
       SlapOSTestCaseMixin.afterSetUp(self)
 
-- 
2.30.9