"""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' )