File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1111 "'stub.server_side_routing.test_server_side_routing.TestServerSideRouting.test_direct_connection_with_url_params'" :
1212 " Driver emits deprecation warning. Behavior will be unified in 6.0." ,
1313 "neo4j.datatypes.test_temporal_types.TestDataTypes.test_should_echo_all_timezone_ids" :
14- " test_subtest_skips.tz_id " ,
14+ " test_subtest_skips.dt_conversion " ,
1515 "neo4j.datatypes.test_temporal_types.TestDataTypes.test_date_time_cypher_created_tz_id" :
1616 " test_subtest_skips.tz_id"
1717 },
Original file line number Diff line number Diff line change 2525"""
2626
2727
28+ import pytz
29+
30+ from . import fromtestkit
31+
32+
2833def tz_id (** params ):
2934 # We could do this automatically, but with an explicit black list we
3035 # make sure we know what we test and what we don't.
@@ -51,3 +56,11 @@ def tz_id(**params):
5156 return (
5257 "timezone id %s is not supported by the system" % params ["tz_id" ]
5358 )
59+
60+
61+ def dt_conversion (** params ):
62+ dt = params ["dt" ]
63+ try :
64+ fromtestkit .to_param (dt )
65+ except (pytz .UnknownTimeZoneError , ValueError ) as e :
66+ return "cannot create desired dt %s: %r" % (dt , e )
You can’t perform that action at this time.
0 commit comments