Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
a737c802
Commit
a737c802
authored
Feb 02, 2021
by
Leo Gao
Browse files
Remove .download mocking
parent
19b0f529
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tests/test_all_sanitycheck.py
tests/test_all_sanitycheck.py
+3
-3
No files found.
tests/test_all_sanitycheck.py
View file @
a737c802
...
@@ -8,10 +8,10 @@ import pytest
...
@@ -8,10 +8,10 @@ import pytest
@
pytest
.
mark
.
parametrize
(
"taskname,Task"
,
tasks
.
TASK_REGISTRY
.
items
())
@
pytest
.
mark
.
parametrize
(
"taskname,Task"
,
tasks
.
TASK_REGISTRY
.
items
())
def
test_basic_interface
(
taskname
,
Task
):
def
test_basic_interface
(
taskname
,
Task
):
print
(
'Evaluating task'
,
taskname
)
print
(
'Evaluating task'
,
taskname
)
dl
=
Task
.
download
#
dl = Task.download
Task
.
download
=
MagicMock
()
#
Task.download = MagicMock()
task
=
Task
()
task
=
Task
()
Task
.
download
=
dl
#
Task.download = dl
assert
task
.
has_training_docs
()
in
[
True
,
False
]
assert
task
.
has_training_docs
()
in
[
True
,
False
]
assert
task
.
has_validation_docs
()
in
[
True
,
False
]
assert
task
.
has_validation_docs
()
in
[
True
,
False
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment