fix website tests

This commit is contained in:
yangdsh 2019-12-15 20:13:26 +00:00 committed by Dana Van Aken
parent 1ebcbf383e
commit df86a9f3bc
1 changed files with 4 additions and 2 deletions

View File

@ -50,7 +50,8 @@ class BackgroundTestCase(TestCase):
# Create empty workload
empty_workload = Workload.objects.create_workload(dbms=DBMSCatalog.objects.get(pk=1),
hardware=Hardware.objects.get(pk=1),
name="empty_workload")
name="empty_workload",
project=Project.objects.get(pk=1))
result = run_background_tasks.delay()
# Check that BG task successfully finished
@ -69,7 +70,8 @@ class BackgroundTestCase(TestCase):
# Create empty workload
fix_workload = Workload.objects.create_workload(dbms=origin_workload.dbms,
hardware=origin_workload.hardware,
name="fixed_knob_workload")
name="fixed_knob_workload",
project=origin_workload.project)
fix_knob_data = Result.objects.filter(workload=origin_workload,
session=origin_session)[0].knob_data