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:
@@ -1,13 +1,13 @@
|
||||
from unit.applications.lang.python import TestApplicationPython
|
||||
from unit.option import option
|
||||
|
||||
prerequisites = {
|
||||
'modules': {'python': 'any'},
|
||||
'features': {'unix_abstract': True},
|
||||
}
|
||||
|
||||
|
||||
class TestUnixAbstract(TestApplicationPython):
|
||||
prerequisites = {
|
||||
'modules': {'python': 'any'},
|
||||
'features': ['unix_abstract'],
|
||||
}
|
||||
|
||||
def test_unix_abstract_source(self):
|
||||
addr = '\0sock'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user