From ce2405ec3dd97e8bdf8f63312e3c6ce59ef562d4 Mon Sep 17 00:00:00 2001 From: Andrei Zeliankou Date: Mon, 12 Jun 2023 14:16:59 +0100 Subject: Tests: prerequisites checking reworked. Prerequisites check moved to the module level to simplify class structure. Discovery and prerequisites checks functions moved to the separate files. Introduced "require" fixture to provide per-test requirements check. --- test/test_njs_modules.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/test_njs_modules.py') diff --git a/test/test_njs_modules.py b/test/test_njs_modules.py index ce592fe4..10ea03a7 100644 --- a/test/test_njs_modules.py +++ b/test/test_njs_modules.py @@ -1,10 +1,10 @@ from unit.applications.proto import TestApplicationProto from unit.option import option +prerequisites = {'modules': {'njs': 'any'}} -class TestNJSModules(TestApplicationProto): - prerequisites = {'modules': {'njs': 'any'}} +class TestNJSModules(TestApplicationProto): def njs_script_load(self, module, name=None, expect='success'): if name is None: name = module -- cgit