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:
@@ -5,13 +5,12 @@ import pytest
|
||||
from packaging import version
|
||||
from unit.applications.lang.python import TestApplicationPython
|
||||
|
||||
prerequisites = {
|
||||
'modules': {'python': lambda v: version.parse(v) >= version.parse('3.5')}
|
||||
}
|
||||
|
||||
|
||||
class TestASGIApplication(TestApplicationPython):
|
||||
prerequisites = {
|
||||
'modules': {
|
||||
'python': lambda v: version.parse(v) >= version.parse('3.5')
|
||||
}
|
||||
}
|
||||
load_module = 'asgi'
|
||||
|
||||
def test_asgi_application_variables(self, date_to_sec_epoch, sec_epoch):
|
||||
|
||||
Reference in New Issue
Block a user