Skip to content

Commit

Permalink
test documented
Browse files Browse the repository at this point in the history
  • Loading branch information
vokimon committed Mar 15, 2023
1 parent e2b68d5 commit 8338d22
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/erp_service_testsuite.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,21 +342,24 @@ async def test__save_template__bodyTranslation_cloneMissingSupported(self, erp_s
}

async def test__save_template__bodyTranslation_cloneExistingUnsupported(self, erp_service, erp_translations):
# Given a template with the body translated to an unsupported language
erp_translations.edit('def_body_text', 'de_DE', dict(value='Former value'), create=True)

edited = edited_values()

# When we save the templated
await erp_service.save_template(
id = existing_template.erp_id,
**edited,
)

# Then the body is copied also into the unsupported language
assert erp_translations.list('def_body_text') == {
'es_ES': edited.def_body_text,
'ca_ES': edited.def_body_text,
'en_US': edited.def_body_text,
'de_DE': edited.def_body_text,
}
# Because our template bodies have mako code handling the language
# and we want that code to run whichever the language.

@pytest.mark.skip("Not yet deployed in testing")
async def test__render_template__by_erp_id(self, erp_service):
Expand Down

1 comment on commit 8338d22

@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 🔥 1m 44s ⏱️

Please sign in to comment.