Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rights Engine
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Polaris
Rights Engine
Commits
70f25678
Commit
70f25678
authored
4 months ago
by
Lennard Strohmeyer
Browse files
Options
Downloads
Patches
Plain Diff
hotfix for broken test case
parent
04f5b9e5
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#1563236
failed
4 months ago
Stage: test
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/xapi/tests/tests.py
+3
-2
3 additions, 2 deletions
src/xapi/tests/tests.py
with
3 additions
and
2 deletions
src/xapi/tests/tests.py
+
3
−
2
View file @
70f25678
...
...
@@ -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
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment