MCPcopy
hub / github.com/geldata/gel / test_server_proto_configure_07

Method test_server_proto_configure_07

tests/test_server_config.py:986–1043  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

984 await con2.aclose()
985
986 async def test_server_proto_configure_07(self):
987 try:
988 await self.con.execute('''
989 CONFIGURE SESSION SET multiprop := <str>{};
990 ''&#x27;)
991
992 await self.assert_query_result(
993 ''&#x27;
994 SELECT _ := cfg::Config.multiprop ORDER BY _
995 ''&#x27;,
996 [],
997 )
998
999 await self.con.execute(''&#x27;
1000 CONFIGURE INSTANCE SET multiprop := {'4'};
1001 ''&#x27;)
1002
1003 await self.assert_query_result(
1004 ''&#x27;
1005 SELECT _ := cfg::Config.multiprop ORDER BY _
1006 ''&#x27;,
1007 [],
1008 )
1009
1010 await self.con.execute(''&#x27;
1011 CONFIGURE SESSION SET multiprop := {'5'};
1012 ''&#x27;)
1013
1014 await self.assert_query_result(
1015 ''&#x27;
1016 SELECT _ := cfg::Config.multiprop ORDER BY _
1017 ''&#x27;,
1018 [
1019 '5',
1020 ],
1021 )
1022
1023 await self.con.execute(''&#x27;
1024 CONFIGURE SESSION RESET multiprop;
1025 ''&#x27;)
1026
1027 await self.assert_query_result(
1028 ''&#x27;
1029 SELECT _ := cfg::Config.multiprop ORDER BY _
1030 ''&#x27;,
1031 [
1032 '4',
1033 ],
1034 )
1035
1036 finally:
1037 await self.con.execute(''&#x27;
1038 CONFIGURE SESSION RESET multiprop;
1039 ''&#x27;)
1040
1041 await self.con.execute(''&#x27;
1042 CONFIGURE INSTANCE RESET multiprop;
1043 ''&#x27;)

Callers

nothing calls this directly

Calls 2

executeMethod · 0.80
assert_query_resultMethod · 0.45

Tested by

no test coverage detected