Skip to content

Commit

Permalink
toaster: Run tests in build mode
Browse files Browse the repository at this point in the history
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 <elliot.smith@intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
  • Loading branch information
townxelliot authored and rpurdie committed Oct 27, 2015
1 parent 52de2c8 commit 991712f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/toaster/toastergui/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
from orm.models import CustomImageRecipe, ProjectVariable
from orm.models import Branch

import toastermain

from toastergui.tables import SoftwareRecipesTable
import json
from bs4 import BeautifulSoup
Expand All @@ -40,6 +42,10 @@
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."""

Expand Down

0 comments on commit 991712f

Please sign in to comment.