Skip to content

Commit

Permalink
Bodies in unsupported languages must be overwritten
Browse files Browse the repository at this point in the history
For bodies, not for subjects, language is managed
by the mako code, so whichever translation exist
it must be written with the code we have.
  • Loading branch information
vokimon committed Mar 15, 2023
1 parent 16167bb commit e2b68d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/erp_service_testsuite.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,8 @@ async def test__save_template__bodyTranslation_cloneMissingSupported(self, erp_s
'en_US': edited.def_body_text,
}

@pytest.mark.skip("In this moment, we don't want to add unsupported languages")
async def test__save_template__bodyTranslation_cloneExistingUnsupported(self, erp_service, erp_translations):
erp_translations.edit('def_body_text', 'en_US', dict(value='Former value'), create=True)
erp_translations.edit('def_body_text', 'de_DE', dict(value='Former value'), create=True)

edited = edited_values()

Expand All @@ -356,6 +355,7 @@ async def test__save_template__bodyTranslation_cloneExistingUnsupported(self, er
'es_ES': edited.def_body_text,
'ca_ES': edited.def_body_text,
'en_US': edited.def_body_text,
'de_DE': edited.def_body_text,
}

@pytest.mark.skip("Not yet deployed in testing")
Expand Down

1 comment on commit e2b68d5

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests Skipped Failures Errors Time
106 6 💤 0 ❌ 0 🔥 2m 2s ⏱️

Please sign in to comment.