flows: fix tests using flow.background.url
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
86b450c6d1
commit
7581c84a37
|
@ -422,7 +422,7 @@ class TestFlowExecutor(TestCase):
|
||||||
self.assertJSONEqual(
|
self.assertJSONEqual(
|
||||||
force_str(response.content),
|
force_str(response.content),
|
||||||
{
|
{
|
||||||
"background": flow.background.url,
|
"background": flow.background_url,
|
||||||
"type": ChallengeTypes.NATIVE.value,
|
"type": ChallengeTypes.NATIVE.value,
|
||||||
"component": "ak-stage-dummy",
|
"component": "ak-stage-dummy",
|
||||||
"title": binding.stage.name,
|
"title": binding.stage.name,
|
||||||
|
@ -453,7 +453,7 @@ class TestFlowExecutor(TestCase):
|
||||||
self.assertJSONEqual(
|
self.assertJSONEqual(
|
||||||
force_str(response.content),
|
force_str(response.content),
|
||||||
{
|
{
|
||||||
"background": flow.background.url,
|
"background": flow.background_url,
|
||||||
"type": ChallengeTypes.NATIVE.value,
|
"type": ChallengeTypes.NATIVE.value,
|
||||||
"component": "ak-stage-dummy",
|
"component": "ak-stage-dummy",
|
||||||
"title": binding4.stage.name,
|
"title": binding4.stage.name,
|
||||||
|
|
|
@ -108,7 +108,7 @@ class TestIdentificationStage(TestCase):
|
||||||
self.assertJSONEqual(
|
self.assertJSONEqual(
|
||||||
force_str(response.content),
|
force_str(response.content),
|
||||||
{
|
{
|
||||||
"background": self.flow.background.url,
|
"background": self.flow.background_url,
|
||||||
"type": ChallengeTypes.NATIVE.value,
|
"type": ChallengeTypes.NATIVE.value,
|
||||||
"component": "ak-stage-identification",
|
"component": "ak-stage-identification",
|
||||||
"password_fields": True,
|
"password_fields": True,
|
||||||
|
@ -181,7 +181,7 @@ class TestIdentificationStage(TestCase):
|
||||||
self.assertJSONEqual(
|
self.assertJSONEqual(
|
||||||
force_str(response.content),
|
force_str(response.content),
|
||||||
{
|
{
|
||||||
"background": flow.background.url,
|
"background": flow.background_url,
|
||||||
"type": ChallengeTypes.NATIVE.value,
|
"type": ChallengeTypes.NATIVE.value,
|
||||||
"component": "ak-stage-identification",
|
"component": "ak-stage-identification",
|
||||||
"user_fields": ["email"],
|
"user_fields": ["email"],
|
||||||
|
@ -229,7 +229,7 @@ class TestIdentificationStage(TestCase):
|
||||||
self.assertJSONEqual(
|
self.assertJSONEqual(
|
||||||
force_str(response.content),
|
force_str(response.content),
|
||||||
{
|
{
|
||||||
"background": flow.background.url,
|
"background": flow.background_url,
|
||||||
"type": ChallengeTypes.NATIVE.value,
|
"type": ChallengeTypes.NATIVE.value,
|
||||||
"component": "ak-stage-identification",
|
"component": "ak-stage-identification",
|
||||||
"user_fields": ["email"],
|
"user_fields": ["email"],
|
||||||
|
|
Reference in a new issue