-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LITE-30249 Product exporting plugin fails with error TypeError
- Loading branch information
1 parent
c2db1f8
commit 7574c77
Showing
3 changed files
with
24 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import pytest | ||
|
||
from connect.cli.plugins.product.export import _primary_translation_str | ||
|
||
|
||
def test_primary_translation_str_ok(): | ||
translation = {'locale': { | ||
'id': 'jp', | ||
'name': 'Japanese', | ||
}} | ||
|
||
assert 'jp (Japanese)' == _primary_translation_str(translation) | ||
|
||
|
||
def test_primary_translation_str_none(): | ||
assert '' == _primary_translation_str(None) |