Now that the UI content is conditional on whether BUILD_MODE is active, modify the existing tests so that they run in this mode by default.
[YOCTO #8514] Signed-off-by: Elliot Smith <[email protected]> --- bitbake/lib/toaster/toastergui/tests.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bitbake/lib/toaster/toastergui/tests.py b/bitbake/lib/toaster/toastergui/tests.py index 29dd7fd..9e6c46a 100644 --- a/bitbake/lib/toaster/toastergui/tests.py +++ b/bitbake/lib/toaster/toastergui/tests.py @@ -32,6 +32,8 @@ from orm.models import Layer_Version, Recipe, Machine, ProjectLayer, Target from orm.models import CustomImageRecipe, ProjectVariable from orm.models import Branch +import toastermain + from toastergui.tables import SoftwareRecipesTable import json from bs4 import BeautifulSoup @@ -40,6 +42,10 @@ import re PROJECT_NAME = "test project" CLI_BUILDS_PROJECT_NAME = 'Command line builds' +# by default, tests are run in build mode; to run in analysis mode, +# set this to False in individual test cases +toastermain.settings.BUILD_MODE = True + class ViewTests(TestCase): """Tests to verify view APIs.""" -- Elliot Smith Software Engineer Intel OTC --------------------------------------------------------------------- Intel Corporation (UK) Limited Registered No. 1134945 (England) Registered Office: Pipers Way, Swindon SN3 1RJ VAT No: 860 2173 47 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. -- _______________________________________________ toaster mailing list [email protected] https://lists.yoctoproject.org/listinfo/toaster
