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.
This commit is contained in:
@@ -7,10 +7,10 @@ from unit.applications.lang.java import TestApplicationJava
|
||||
from unit.option import option
|
||||
from unit.utils import public_dir
|
||||
|
||||
prerequisites = {'modules': {'java': 'all'}}
|
||||
|
||||
|
||||
class TestJavaApplication(TestApplicationJava):
|
||||
prerequisites = {'modules': {'java': 'all'}}
|
||||
|
||||
def test_java_conf_error(self, temp_dir, skip_alert):
|
||||
skip_alert(
|
||||
r'realpath.*failed',
|
||||
|
||||
Reference in New Issue
Block a user