Build dev8 & improved cpl new unittests

This commit is contained in:
Sven Heidemann 2022-05-26 23:27:32 +02:00
parent 348fad24c7
commit 162f06001a
6 changed files with 18 additions and 17 deletions

View File

@ -4,7 +4,7 @@
"Version": {
"Major": "2022",
"Minor": "6",
"Micro": "17.dev7"
"Micro": "17.dev8"
},
"Author": "",
"AuthorEmail": "",
@ -16,7 +16,7 @@
"LicenseName": "",
"LicenseDescription": "",
"Dependencies": [
"cpl-core>=2022.6.17.dev7"
"cpl-core>=2022.6.17.dev8"
],
"PythonVersion": ">=3.10.4",
"PythonPath": {

View File

@ -28,7 +28,8 @@ class NewTestCase(unittest.TestCase):
else:
self.assertFalse(os.path.isfile(os.path.join(project_path, f'application.py')))
if '--sp' in args:
# s depends on ab
if '--ab' in args and '--s' in args:
self.assertTrue(os.path.isfile(os.path.join(project_path, f'startup.py')))
else:
self.assertFalse(os.path.isfile(os.path.join(project_path, f'startup.py')))
@ -50,10 +51,7 @@ class NewTestCase(unittest.TestCase):
os.chdir(os.path.abspath(os.path.join(os.getcwd(), '../')))
def test_console(self):
self._test_project('console', 'test-console', '--ab', '--s', '--sp')
def test_console_without_sp(self):
self._test_project('console', 'test-console-without-sp', '--ab', '--s')
self._test_project('console', 'test-console', '--ab', '--s')
def test_console_without_s(self):
self._test_project('console', 'test-console-without-s', '--ab')
@ -61,6 +59,9 @@ class NewTestCase(unittest.TestCase):
def test_console_without_ab(self):
self._test_project('console', 'test-console-without-ab', '--sp')
def test_console_without_anything(self):
self._test_project('console', 'test-console-without-anything', '--n')
def test_sub_console(self):
self._test_sub_project('console', 'test-sub-console', 'test-console', '--ab', '--s', '--sp')

View File

@ -4,7 +4,7 @@
"Version": {
"Major": "2022",
"Minor": "6",
"Micro": "17.dev7"
"Micro": "17.dev8"
},
"Author": "",
"AuthorEmail": "",
@ -16,8 +16,8 @@
"LicenseName": "",
"LicenseDescription": "",
"Dependencies": [
"cpl-core>=2022.6.17.dev7",
"cpl-cli>=2022.6.17.dev7"
"cpl-core>=2022.6.17.dev8",
"cpl-cli>=2022.6.17.dev8"
],
"PythonVersion": ">=3.10.4",
"PythonPath": {

View File

@ -4,7 +4,7 @@
"Version": {
"Major": "2022",
"Minor": "6",
"Micro": "17.dev7"
"Micro": "17.dev8"
},
"Author": "",
"AuthorEmail": "",
@ -16,7 +16,7 @@
"LicenseName": "",
"LicenseDescription": "",
"Dependencies": [
"cpl-core>=2022.6.17.dev7"
"cpl-core>=2022.6.17.dev8"
],
"PythonVersion": ">=3.10.4",
"PythonPath": {

View File

@ -4,7 +4,7 @@
"Version": {
"Major": "2022",
"Minor": "6",
"Micro": "17.dev7"
"Micro": "17.dev8"
},
"Author": "",
"AuthorEmail": "",
@ -16,8 +16,8 @@
"LicenseName": "",
"LicenseDescription": "",
"Dependencies": [
"cpl-core>=2022.6.17.dev7",
"cpl-query>=2022.6.17.dev7"
"cpl-core>=2022.6.17.dev8",
"cpl-query>=2022.6.17.dev8"
],
"PythonVersion": ">=3.10.4",
"PythonPath": {

View File

@ -4,7 +4,7 @@
"Version": {
"Major": "2022",
"Minor": "6",
"Micro": "17.dev7"
"Micro": "17.dev8"
},
"Author": "",
"AuthorEmail": "",
@ -16,7 +16,7 @@
"LicenseName": "",
"LicenseDescription": "",
"Dependencies": [
"cpl-core>=2022.6.17.dev7"
"cpl-core>=2022.6.17.dev8"
],
"PythonVersion": ">=3.10.4",
"PythonPath": {