mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
1) Ensure that when '--pkg resql' is provided then only RESQL test cases should run.
2) Fixed the RESQL test cases for Sequences. #5810
This commit is contained in:
@@ -7,7 +7,8 @@ CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
|
|||||||
START 5
|
START 5
|
||||||
MINVALUE 5
|
MINVALUE 5
|
||||||
MAXVALUE 900
|
MAXVALUE 900
|
||||||
CACHE 1;
|
CACHE 1
|
||||||
|
OWNED BY tableforownedby.col2;
|
||||||
|
|
||||||
ALTER SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#"
|
ALTER SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#"
|
||||||
OWNER TO postgres;
|
OWNER TO postgres;
|
||||||
|
|||||||
@@ -1,4 +1,2 @@
|
|||||||
ALTER SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
|
|
||||||
OWNED BY NONE;
|
|
||||||
ALTER SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
|
ALTER SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
|
||||||
MAXVALUE 900;
|
MAXVALUE 900;
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ CREATE SEQUENCE IF NOT EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
|
|||||||
START 5
|
START 5
|
||||||
MINVALUE 5
|
MINVALUE 5
|
||||||
MAXVALUE 900
|
MAXVALUE 900
|
||||||
CACHE 1;
|
CACHE 1
|
||||||
|
OWNED BY tableforownedby.col2;
|
||||||
|
|
||||||
ALTER SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#"
|
ALTER SEQUENCE public."Seq1_$%{}[]()&*^!@""'`\/#"
|
||||||
OWNER TO enterprisedb;
|
OWNER TO enterprisedb;
|
||||||
|
|||||||
@@ -1,4 +1,2 @@
|
|||||||
ALTER SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
|
|
||||||
OWNED BY NONE;
|
|
||||||
ALTER SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
|
ALTER SEQUENCE IF EXISTS public."Seq1_$%{}[]()&*^!@""'`\/#"
|
||||||
MAXVALUE 900;
|
MAXVALUE 900;
|
||||||
|
|||||||
@@ -68,13 +68,11 @@ class TestsGeneratorRegistry(ABCMeta):
|
|||||||
all_modules = []
|
all_modules = []
|
||||||
|
|
||||||
try:
|
try:
|
||||||
for module_name in find_modules(pkg_root, True, True):
|
for module_name in find_modules(pkg_root, False, True):
|
||||||
if module_name.find(PSYCOPG2) != -1:
|
if module_name.find(PSYCOPG2) != -1:
|
||||||
print("Skipping ", module_name)
|
print("Skipping ", module_name)
|
||||||
continue
|
continue
|
||||||
all_modules.append(module_name)
|
all_modules.append(module_name)
|
||||||
TestsGeneratorRegistry._exclude_packages(all_modules,
|
|
||||||
exclude_pkgs)
|
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user