From 4490f6f83865f30f37920e98619c14a6064316fe Mon Sep 17 00:00:00 2001 From: Akshay Joshi Date: Tue, 20 Jun 2023 17:24:37 +0530 Subject: [PATCH] Ensure that if test cases run with the '--pkg resql' option then only RESQL test cases should be run. --- web/pgadmin/utils/route.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/pgadmin/utils/route.py b/web/pgadmin/utils/route.py index 173348cc8..2bcce7c68 100644 --- a/web/pgadmin/utils/route.py +++ b/web/pgadmin/utils/route.py @@ -100,6 +100,9 @@ class TestsGeneratorRegistry(ABCMeta): # if yes then import only that module if is_resql_only: BaseTestGenerator.setForModules(for_modules) + # In case of RESQL only clear the registry of modules, as + # RESQL test cases should be run. + cls.registry = dict() try: import_module('regression.re_sql.tests.test_resql') except ImportError: