From 5d5424e125dd931b42f85138aa20347adca90d5c Mon Sep 17 00:00:00 2001 From: John Kurkowski Date: Tue, 31 Oct 2023 01:13:52 -0700 Subject: [PATCH] Fix snapshot Number of calls went from 1 method call with 3 list items to 3 method calls with 1 list item each. --- tests/__snapshots__/test_render.ambr | 182 +++++++++++++++++++++++++++ 1 file changed, 182 insertions(+) diff --git a/tests/__snapshots__/test_render.ambr b/tests/__snapshots__/test_render.ambr index b6a5cd3..4ef57f5 100644 --- a/tests/__snapshots__/test_render.ambr +++ b/tests/__snapshots__/test_render.ambr @@ -1246,10 +1246,192 @@ _Call( '', tuple( + ClientSession( + ATTRS=frozenset({ + '_auto_decompress', + '_base_url', + '_connector', + '_connector_owner', + '_cookie_jar', + '_default_auth', + '_default_headers', + '_json_serialize', + '_loop', + '_raise_for_status', + '_read_bufsize', + '_request_class', + '_requote_redirect_url', + '_response_class', + '_skip_auto_headers', + '_source_traceback', + '_timeout', + '_trace_configs', + '_trust_env', + '_version', + '_ws_response_class', + 'requote_redirect_url', + }), + auth=None, + auto_decompress=True, + closed=True, + connector=None, + connector_owner=True, + cookie_jar=CookieJar( + DATE_DAY_OF_MONTH_RE=re.compile('(\\d{1,2})'), + DATE_HMS_TIME_RE=re.compile('(\\d{1,2}):(\\d{1,2}):(\\d{1,2})'), + DATE_MONTH_RE=re.compile('(jan)|(feb)|(mar)|(apr)|(may)|(jun)|(jul)|(aug)|(sep)|(oct)|(nov)|(dec)', re.IGNORECASE), + DATE_TOKENS_RE=re.compile('[\\x09\\x20-\\x2F\\x3B-\\x40\\x5B-\\x60\\x7B-\\x7E]*(?P[\\x00-\\x08\\x0A-\\x1F\\d:a-zA-Z\\x7F-\\xFF]+)'), + DATE_YEAR_RE=re.compile('(\\d{2,4})'), + MAX_32BIT_TIME=datetime.datetime(2038, 1, 19, 3, 14, 7), + MAX_TIME=datetime.datetime(9999, 12, 31, 23, 59, 59, 999999, tzinfo=datetime.timezone.utc), + ), + headers=, + loop=<_UnixSelectorEventLoop running=False closed=True debug=False>, + raise_for_status=False, + requote_redirect_url=True, + skip_auto_headers=frozenset({ + }), + timeout=ClientTimeout(total=300, connect=None, sock_read=None, sock_connect=None), + trace_configs=list([ + ]), + trust_env=False, + version=HttpVersion( + major=1, + minor=1, + ), + ), 'stub-fake-token', list([ 'TMP_PATH_HERE/Stub Song Title.wav', + ]), + ), + dict({ + }), + ), + _Call( + '', + tuple( + ClientSession( + ATTRS=frozenset({ + '_auto_decompress', + '_base_url', + '_connector', + '_connector_owner', + '_cookie_jar', + '_default_auth', + '_default_headers', + '_json_serialize', + '_loop', + '_raise_for_status', + '_read_bufsize', + '_request_class', + '_requote_redirect_url', + '_response_class', + '_skip_auto_headers', + '_source_traceback', + '_timeout', + '_trace_configs', + '_trust_env', + '_version', + '_ws_response_class', + 'requote_redirect_url', + }), + auth=None, + auto_decompress=True, + closed=True, + connector=None, + connector_owner=True, + cookie_jar=CookieJar( + DATE_DAY_OF_MONTH_RE=re.compile('(\\d{1,2})'), + DATE_HMS_TIME_RE=re.compile('(\\d{1,2}):(\\d{1,2}):(\\d{1,2})'), + DATE_MONTH_RE=re.compile('(jan)|(feb)|(mar)|(apr)|(may)|(jun)|(jul)|(aug)|(sep)|(oct)|(nov)|(dec)', re.IGNORECASE), + DATE_TOKENS_RE=re.compile('[\\x09\\x20-\\x2F\\x3B-\\x40\\x5B-\\x60\\x7B-\\x7E]*(?P[\\x00-\\x08\\x0A-\\x1F\\d:a-zA-Z\\x7F-\\xFF]+)'), + DATE_YEAR_RE=re.compile('(\\d{2,4})'), + MAX_32BIT_TIME=datetime.datetime(2038, 1, 19, 3, 14, 7), + MAX_TIME=datetime.datetime(9999, 12, 31, 23, 59, 59, 999999, tzinfo=datetime.timezone.utc), + ), + headers=, + loop=<_UnixSelectorEventLoop running=False closed=True debug=False>, + raise_for_status=False, + requote_redirect_url=True, + skip_auto_headers=frozenset({ + }), + timeout=ClientTimeout(total=300, connect=None, sock_read=None, sock_connect=None), + trace_configs=list([ + ]), + trust_env=False, + version=HttpVersion( + major=1, + minor=1, + ), + ), + 'stub-fake-token', + list([ 'TMP_PATH_HERE/Stub Song Title (Instrumental).wav', + ]), + ), + dict({ + }), + ), + _Call( + '', + tuple( + ClientSession( + ATTRS=frozenset({ + '_auto_decompress', + '_base_url', + '_connector', + '_connector_owner', + '_cookie_jar', + '_default_auth', + '_default_headers', + '_json_serialize', + '_loop', + '_raise_for_status', + '_read_bufsize', + '_request_class', + '_requote_redirect_url', + '_response_class', + '_skip_auto_headers', + '_source_traceback', + '_timeout', + '_trace_configs', + '_trust_env', + '_version', + '_ws_response_class', + 'requote_redirect_url', + }), + auth=None, + auto_decompress=True, + closed=True, + connector=None, + connector_owner=True, + cookie_jar=CookieJar( + DATE_DAY_OF_MONTH_RE=re.compile('(\\d{1,2})'), + DATE_HMS_TIME_RE=re.compile('(\\d{1,2}):(\\d{1,2}):(\\d{1,2})'), + DATE_MONTH_RE=re.compile('(jan)|(feb)|(mar)|(apr)|(may)|(jun)|(jul)|(aug)|(sep)|(oct)|(nov)|(dec)', re.IGNORECASE), + DATE_TOKENS_RE=re.compile('[\\x09\\x20-\\x2F\\x3B-\\x40\\x5B-\\x60\\x7B-\\x7E]*(?P[\\x00-\\x08\\x0A-\\x1F\\d:a-zA-Z\\x7F-\\xFF]+)'), + DATE_YEAR_RE=re.compile('(\\d{2,4})'), + MAX_32BIT_TIME=datetime.datetime(2038, 1, 19, 3, 14, 7), + MAX_TIME=datetime.datetime(9999, 12, 31, 23, 59, 59, 999999, tzinfo=datetime.timezone.utc), + ), + headers=, + loop=<_UnixSelectorEventLoop running=False closed=True debug=False>, + raise_for_status=False, + requote_redirect_url=True, + skip_auto_headers=frozenset({ + }), + timeout=ClientTimeout(total=300, connect=None, sock_read=None, sock_connect=None), + trace_configs=list([ + ]), + trust_env=False, + version=HttpVersion( + major=1, + minor=1, + ), + ), + 'stub-fake-token', + list([ 'TMP_PATH_HERE/Stub Song Title (A Cappella).wav', ]), ),