Tests: unit module refactoring.

This commit is contained in:
Andrey Zelenkov
2019-03-28 18:43:13 +03:00
parent 06b9a11494
commit 19eba1730a
33 changed files with 931 additions and 918 deletions

View File

@@ -1,11 +1,10 @@
import unittest
import unit
import re
import unittest
from unit.applications.lang.php import TestApplicationPHP
class TestUnitPHPApplication(unit.TestUnitApplicationPHP):
class TestPHPApplication(TestApplicationPHP):
def setUpClass():
unit.TestUnit().check_modules('php')
TestApplicationPHP().check_modules('php')
def before_disable_functions(self):
body = self.get()['body']
@@ -422,4 +421,4 @@ class TestUnitPHPApplication(unit.TestUnitApplicationPHP):
if __name__ == '__main__':
TestUnitPHPApplication.main()
TestPHPApplication.main()