Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove symbols from create spoken forms & migrate to *.talon-list #1638

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
3028ae3
Remove symbols from create spoken forms & migrate remaining keys list…
knausj85 Dec 14, 2024
057eb2d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 14, 2024
6bce77c
Update create_spoken_forms.py
knausj85 Dec 14, 2024
f291cbf
Merge branch 'create-spoken-form-remote-symbols' of https://github.co…
knausj85 Dec 14, 2024
ee47ffb
Update test_create_spoken_forms.py
knausj85 Dec 14, 2024
eadc481
Update create_spoken_forms.py
knausj85 Dec 14, 2024
47e2ddf
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 14, 2024
d01743f
Update create_spoken_forms.py
knausj85 Dec 14, 2024
1e30068
preserve set functionality to remove duplicates, fix unit tests.
knausj85 Dec 14, 2024
0762dfa
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 14, 2024
052047c
Remove duplicates
knausj85 Dec 15, 2024
f8db161
Merge branch 'main' into create-spoken-form-remote-symbols
nriley Dec 15, 2024
3559a73
Merge branch 'main' into create-spoken-form-remote-symbols
nriley Dec 15, 2024
8848939
Update create_spoken_forms.py
knausj85 Jan 19, 2025
2e270a7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2025
cebcb50
Update test_create_spoken_forms.py
knausj85 Jan 19, 2025
b134361
Merge branch 'create-spoken-form-remote-symbols' of https://github.co…
knausj85 Jan 19, 2025
61d69b3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 19, 2025
775115d
Update create_spoken_forms.py
knausj85 Jan 19, 2025
bf534e5
Merge branch 'create-spoken-form-remote-symbols' of https://github.co…
knausj85 Jan 19, 2025
cb7829e
Merge branch 'main' into create-spoken-form-remote-symbols
knausj85 Jan 19, 2025
7ec878a
Update symbol_key.talon-list
knausj85 Jan 25, 2025
99c2f7f
Merge branch 'main' into create-spoken-form-remote-symbols
knausj85 Jan 25, 2025
78fbfcc
Merge branch 'main' into create-spoken-form-remote-symbols
nriley Jan 25, 2025
59ff70e
Merge branch 'main' into create-spoken-form-remote-symbols
nriley Jan 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update test_create_spoken_forms.py
  • Loading branch information
knausj85 committed Jan 19, 2025
commit cebcb505241766c9d4f5f92d3f1de01a12257605
20 changes: 20 additions & 0 deletions test/test_create_spoken_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,26 @@ def test_explode_packed_words():

assert "read me" in result

def test_email():
result = actions.user.create_spoken_forms("[email protected]", None, 0, True)
assert "stupid at test dot com" in result

def test_symbol_removal():
result = actions.user.create_spoken_forms("$ this_is_a-'test'", None, 0, True)

assert "this is a test" in result

def test_and_symbol():
result = actions.user.create_spoken_forms("movies & tv", None, 0, True)

assert "movies tv" in result
assert "movies and tv" in result

def test_apostrophe_stripping():
result = actions.user.create_spoken_forms("Sam's club", None, 0, True)

assert "sams club" in result

def test_properties():
"""
Throw some random inputs at the function to make sure it behaves itself
Expand Down