mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-07 22:53:45 -06:00
Fixed API test cases for exec/call procedure.
This commit is contained in:
parent
2324337149
commit
f724578463
@ -28,7 +28,7 @@ class ProcedureExecSQLTestCase(BaseTestGenerator):
|
|||||||
('Fetch Procedure with arguments SQL to execute', dict(
|
('Fetch Procedure with arguments SQL to execute', dict(
|
||||||
url='/browser/procedure/exec_sql/', with_args=True,
|
url='/browser/procedure/exec_sql/', with_args=True,
|
||||||
args="arg1 bigint",
|
args="arg1 bigint",
|
||||||
expected_sql="{0} {1}.{2}( <arg1 bigint> )"))
|
expected_sql="{0} {1}.{2}( <IN arg1 bigint> )"))
|
||||||
]
|
]
|
||||||
|
|
||||||
def runTest(self):
|
def runTest(self):
|
||||||
@ -41,9 +41,6 @@ class ProcedureExecSQLTestCase(BaseTestGenerator):
|
|||||||
message = "Procedures are not supported by PG < 110000."
|
message = "Procedures are not supported by PG < 110000."
|
||||||
self.skipTest(message)
|
self.skipTest(message)
|
||||||
|
|
||||||
if self.with_args and self.server_version >= 140000:
|
|
||||||
self.expected_sql = "{0} {1}.{2}( <IN arg1 bigint> )"
|
|
||||||
|
|
||||||
proc_name = "test_procedure_exec_sql_%s" % str(uuid.uuid4())[1:8]
|
proc_name = "test_procedure_exec_sql_%s" % str(uuid.uuid4())[1:8]
|
||||||
proc_info = funcs_utils.create_procedure(
|
proc_info = funcs_utils.create_procedure(
|
||||||
self.server, self.db_name, self.schema_name, proc_name,
|
self.server, self.db_name, self.schema_name, proc_name,
|
||||||
|
Loading…
Reference in New Issue
Block a user