Skip to content
Snippets Groups Projects
Commit 70f25678 authored by Lennard Strohmeyer's avatar Lennard Strohmeyer :penguin:
Browse files

hotfix for broken test case

parent 04f5b9e5
Branches
No related tags found
No related merge requests found
Pipeline #1563236 failed
......@@ -963,7 +963,7 @@ class TextxAPIAdditionalLrs(BaseTestCase):
@patch("xapi.views.requests.post")
def test_xapi_additional_lrs(self, mock_post):
"""
Ensure xAPI statement is matched by object definition type.
Ensure xAPI statement is forwarded to external LRS if configured in provider schema.
"""
# Create provider
......@@ -1039,5 +1039,6 @@ class TextxAPIAdditionalLrs(BaseTestCase):
response.json()["message"], "xAPI statements successfully stored in LRS"
)
mock_post.assert_called_once()
self.assertEqual(self.captured_json, self.statement)
if isinstance(self.captured_json, list): self.assertEqual(self.captured_json, [self.statement])
else: self.assertEqual(self.captured_json, self.statement)
self.assertEqual(self.captured_headers, self.additional_lrs_auth_headers)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment