From 67238b3b4e75d2bc1963ad634cdf276fbf288d5a Mon Sep 17 00:00:00 2001 From: Bryan Bugyi Date: Sat, 31 Aug 2024 00:23:51 -0400 Subject: [PATCH] test: Add URL with fragment to links.zo --- tests/__snapshots__/test_run_action_open.ambr | 1 + tests/__snapshots__/test_run_compile.ambr | 15 ++++++++++++++- tests/__snapshots__/test_run_db.ambr | 5 ++++- tests/__snapshots__/test_run_query.ambr | 8 ++++++++ tests/data/links.zo | 1 + 5 files changed, 28 insertions(+), 2 deletions(-) diff --git a/tests/__snapshots__/test_run_action_open.ambr b/tests/__snapshots__/test_run_action_open.ambr index 7f36b2e..cb8b032 100644 --- a/tests/__snapshots__/test_run_action_open.ambr +++ b/tests/__snapshots__/test_run_action_open.ambr @@ -59,6 +59,7 @@ - 240828#02 ID::foo_with_slashes_query https://go/foo?a=/&b=2&c=/ - 240828#03 ID::foo_with_url_arg https://go/foo?bar=%s - 240828#04 ID::foo_slash_arg https://go/foo/bar/%s + - 240831#00 ID::gchat_convo https://mail.google.com/chat/u/0/#chat/space/AAAAKA-qATI ################################ [[multiblocks]] - 240510#0E Note A2 diff --git a/tests/__snapshots__/test_run_compile.ambr b/tests/__snapshots__/test_run_compile.ambr index 7f0dc1c..91b4f1d 100644 --- a/tests/__snapshots__/test_run_compile.ambr +++ b/tests/__snapshots__/test_run_compile.ambr @@ -638,7 +638,20 @@ 'projects': [], 'properties': {'ID': 'foo_slash_arg'}, 'todo_payload': None, - 'zid': '240828#04'}], + 'zid': '240828#04'}, + {'areas': [], + 'block': None, + 'body': '240831#00 ID::gchat_convo ' + 'https://mail.google.com/chat/u/0/#chat/space/AAAAKA-qATI', + 'contexts': ['footnote'], + 'create_date': FakeDate(2024, 8, 31), + 'links': ['x:https://mail.google.com/chat/u/0'], + 'modify_date': FakeDate(2024, 8, 31), + 'people': [], + 'projects': [], + 'properties': {'ID': 'gchat_convo'}, + 'todo_payload': None, + 'zid': '240831#00'}], 'section': None}], 'h2s': [], 'page': None, diff --git a/tests/__snapshots__/test_run_db.ambr b/tests/__snapshots__/test_run_db.ambr index 6bfc0b1..b5bd33b 100644 --- a/tests/__snapshots__/test_run_db.ambr +++ b/tests/__snapshots__/test_run_db.ambr @@ -32,6 +32,7 @@ '2024-07-21', '2024-08-06', '2024-08-28', + '2024-08-31', '2030-12-31', ]) # --- @@ -58,6 +59,7 @@ 'x:https://go/foo?a=/&b=2&c=/', 'x:https://go/foo?bar=%s', 'x:https://go/foo?env=dev&bar=2&baz=3', + 'x:https://mail.google.com/chat/u/0', 'x:https://www.bazbuz.com', 'x:https://www.foobar.com', 'xmind/zorg_e2e_query_arch.xmind', @@ -66,7 +68,7 @@ ]) # --- # name: test_run_db_create__note_count[YAMLConfigFile] - 123 + 124 # --- # name: test_run_db_create__people[YAMLConfigFile] list([ @@ -291,6 +293,7 @@ '240828#02', '240828#03', '240828#04', + '240831#00', '301231#X0', '301231#X1', ]) diff --git a/tests/__snapshots__/test_run_query.ambr b/tests/__snapshots__/test_run_query.ambr index 8a6f4bb..f1082d3 100644 --- a/tests/__snapshots__/test_run_query.ambr +++ b/tests/__snapshots__/test_run_query.ambr @@ -148,6 +148,7 @@ - 240828#01 ID::foo_with_url_query https://go/foo?env=dev&bar=2&baz=3 - 240828#02 ID::foo_with_slashes_query https://go/foo?a=/&b=2&c=/ - 240828#03 ID::foo_with_url_arg https://go/foo?bar=%s + - 240831#00 ID::gchat_convo https://mail.google.com/chat/u/0/#chat/space/AAAAKA-qATI ################################ [[property]] o P3 240510#0N This recurring todo also uses an inline property | [recur::M+Th] @@ -271,6 +272,7 @@ - 240828#02 ID::foo_with_slashes_query https://go/foo?a=/&b=2&c=/ - 240828#03 ID::foo_with_url_arg https://go/foo?bar=%s - 240828#04 ID::foo_slash_arg https://go/foo/bar/%s + - 240831#00 ID::gchat_convo https://mail.google.com/chat/u/0/#chat/space/AAAAKA-qATI ################################ [[multiblocks]] o P3 240510#07 Some todo @@ -788,6 +790,7 @@ - 240828#02 ID::foo_with_slashes_query https://go/foo?a=/&b=2&c=/ - 240828#03 ID::foo_with_url_arg https://go/foo?bar=%s - 240828#04 ID::foo_slash_arg https://go/foo/bar/%s + - 240831#00 ID::gchat_convo https://mail.google.com/chat/u/0/#chat/space/AAAAKA-qATI ################################ @pomodoro - 240323#0J #gtd pomodoro @@ -1013,6 +1016,7 @@ - 240828#02 ID::foo_with_slashes_query https://go/foo?a=/&b=2&c=/ - 240828#03 ID::foo_with_url_arg https://go/foo?bar=%s - 240828#04 ID::foo_slash_arg https://go/foo/bar/%s + - 240831#00 ID::gchat_convo https://mail.google.com/chat/u/0/#chat/space/AAAAKA-qATI - 301231#X1 @READ Some article * RID::some_article * url::http://www.example.com @@ -1189,6 +1193,7 @@ - 240828#02 ID::foo_with_slashes_query https://go/foo?a=/&b=2&c=/ - 240828#03 ID::foo_with_url_arg https://go/foo?bar=%s - 240828#04 ID::foo_slash_arg https://go/foo/bar/%s + - 240831#00 ID::gchat_convo https://mail.google.com/chat/u/0/#chat/space/AAAAKA-qATI ++++++++++++++++ +arms - 240510#0L Sqtdicu Gfwebkj: fdxd://rd/czge-nxgz-vmuncaf @@ -1402,6 +1407,7 @@ - 240828#02 ID::foo_with_slashes_query https://go/foo?a=/&b=2&c=/ - 240828#03 ID::foo_with_url_arg https://go/foo?bar=%s - 240828#04 ID::foo_slash_arg https://go/foo/bar/%s + - 240831#00 ID::gchat_convo https://mail.google.com/chat/u/0/#chat/space/AAAAKA-qATI ################################ [[multiblocks]] - 240510#0E Note A2 @@ -1750,6 +1756,7 @@ x:https://go/foo?a=/&b=2&c=/ x:https://go/foo?bar=%s x:https://go/foo?env=dev&bar=2&baz=3 + x:https://mail.google.com/chat/u/0 x:https://www.bazbuz.com x:https://www.foobar.com xmind/zorg_e2e_query_arch.xmind @@ -1779,6 +1786,7 @@ x:https://go/foo?a=/&b=2&c=/ x:https://go/foo?bar=%s x:https://go/foo/bar/%s + x:https://mail.google.com/chat/u/0 bar.sh baz buz#fuzz diff --git a/tests/data/links.zo b/tests/data/links.zo index 5861b33..29df62c 100644 --- a/tests/data/links.zo +++ b/tests/data/links.zo @@ -26,3 +26,4 @@ - 240828#02 ID::foo_with_slashes_query https://go/foo?a=/&b=2&c=/ - 240828#03 ID::foo_with_url_arg https://go/foo?bar=%s - 240828#04 ID::foo_slash_arg https://go/foo/bar/%s +- 240831#00 ID::gchat_convo https://mail.google.com/chat/u/0/#chat/space/AAAAKA-qATI