-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move prettify_and_dedup_list test location
- Loading branch information
Frank Tubbing
committed
Feb 7, 2024
1 parent
8069350
commit 62a0ede
Showing
2 changed files
with
11 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from elementary.utils.strings import prettify_and_dedup_list | ||
|
||
|
||
def test_prettify_and_dedup_list(): | ||
list_prettified = prettify_and_dedup_list(["name1", "name2", "name2"]) | ||
assert list_prettified == "name1, name2" | ||
|
||
assert prettify_and_dedup_list("name1, name2, name2") == "name1, name2" | ||
|
||
string_of_list_prettified = prettify_and_dedup_list('["name1", "name2", "name2"]') | ||
assert string_of_list_prettified == "name1, name2" |