From 65ca2d7b198bf573fe3caf5e75bf6bd3a172820b Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Sat, 14 Sep 2019 14:44:35 +0300 Subject: Tests: refactored prerequisites model. --- test/unit/applications/lang/node.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/unit/applications/lang/node.py') diff --git a/test/unit/applications/lang/node.py b/test/unit/applications/lang/node.py index 1be16458..3cc72669 100644 --- a/test/unit/applications/lang/node.py +++ b/test/unit/applications/lang/node.py @@ -4,6 +4,17 @@ from unit.applications.proto import TestApplicationProto class TestApplicationNode(TestApplicationProto): + @classmethod + def setUpClass(cls, complete_check=True): + unit = super().setUpClass(complete_check=False) + + # check node module + + if os.path.exists(unit.pardir + '/node/node_modules'): + cls.available['modules']['node'] = [] + + return unit if not complete_check else unit.complete() + def load(self, script, name='app.js'): # copy application -- cgit