Files
Charly Delay cf7de3c106 testsuite: refactor for clarity and maintenance
Change-Id: I1d500175c06a0839268c8a3c4bfc31043c1bf259
2015-09-30 18:23:28 +02:00

32 lines
965 B
Python

"""Check that all files have been created."""
from unittest import TestCase
from support.mock import GNAThub, Project
class TestSimpleExample(TestCase):
def setUp(self):
self.longMessage = True
# Run GNAThub with only the sonar-config plugin
self.gnathub = GNAThub(Project.disabled(), plugins=['sonar-config'])
def testDatabaseContent(self):
# Dummy scenario variables
scenario = {
'BUILD_MODE': 'Production',
'VERSION': 'test-0.0.0',
'BUILD_DIR': '/some/user/workspace/project/build/dir',
'PROCESSORS': '2'
}
# Test the Python API
self.gnathub.run(script='check-api.py', scenario_vars=scenario)
def testCrossAttributes(self):
self.gnathub.run(script='check-cross-api.py')
self.gnathub.run(
script='check-cross-api-override.py',
target='my-custom-target', runtime='my-custom-runtime'
)