fix tests

This commit is contained in:
wh1te909 2021-05-17 06:45:43 +00:00
parent 7569d98e07
commit e848a9a577
1 changed files with 2 additions and 1 deletions

View File

@ -213,7 +213,8 @@ class TestAPIv3(TacticalTestCase):
# setup data # setup data
agent = baker.make_recipe("agents.agent") agent = baker.make_recipe("agents.agent")
task = baker.make("autotasks.AutomatedTask", agent=agent) script = baker.make_recipe("scripts.script")
task = baker.make("autotasks.AutomatedTask", agent=agent, script=script)
url = f"/api/v3/{task.pk}/{agent.agent_id}/taskrunner/" # type: ignore url = f"/api/v3/{task.pk}/{agent.agent_id}/taskrunner/" # type: ignore