Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lti-xblock-consumer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenJupyter
lti-xblock-consumer
Commits
62f09ae4
Unverified
Commit
62f09ae4
authored
3 years ago
by
Ned Batchelder
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #192 from edx/nedbat/clean-tests
test: suppress noise
parents
3f33af79
f7c69ba6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test.py
+8
-0
8 additions, 0 deletions
test.py
with
8 additions
and
0 deletions
test.py
+
8
−
0
View file @
62f09ae4
...
@@ -4,7 +4,9 @@ Run tests for the LTI Consumer XBlock
...
@@ -4,7 +4,9 @@ Run tests for the LTI Consumer XBlock
"""
"""
import
os
import
os
import
logging
import
sys
import
sys
import
warnings
if
__name__
==
'
__main__
'
:
if
__name__
==
'
__main__
'
:
os
.
environ
.
setdefault
(
'
DJANGO_SETTINGS_MODULE
'
,
'
test_settings
'
)
os
.
environ
.
setdefault
(
'
DJANGO_SETTINGS_MODULE
'
,
'
test_settings
'
)
...
@@ -28,6 +30,12 @@ if __name__ == '__main__':
...
@@ -28,6 +30,12 @@ if __name__ == '__main__':
settings
.
INSTALLED_APPS
+=
(
'
lti_consumer
'
,)
settings
.
INSTALLED_APPS
+=
(
'
lti_consumer
'
,)
# Suppress logging: it just clutters the test output with error logs that are expected.
logging
.
disable
(
logging
.
CRITICAL
)
# Suppress a warning from XBlock: "IdGenerator will be required in the future in order to support XBlockAsides"
warnings
.
filterwarnings
(
"
ignore
"
,
category
=
FutureWarning
,
message
=
r
"
IdGenerator will be required.*
"
)
arguments
=
sys
.
argv
[
1
:]
arguments
=
sys
.
argv
[
1
:]
options
=
[
argument
for
argument
in
arguments
if
argument
.
startswith
(
'
-
'
)]
options
=
[
argument
for
argument
in
arguments
if
argument
.
startswith
(
'
-
'
)]
paths
=
[
argument
for
argument
in
arguments
if
argument
not
in
options
]
paths
=
[
argument
for
argument
in
arguments
if
argument
not
in
options
]
...
...
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