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
1c27e371
Commit
1c27e371
authored
Jul 14, 2023
by
baberabb
Browse files
typo
parent
58aa729f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
.github/workflows/tests.yml
.github/workflows/tests.yml
+1
-1
tests/test_tasks.py
tests/test_tasks.py
+4
-4
No files found.
.github/workflows/tests.yml
View file @
1c27e371
...
...
@@ -54,4 +54,4 @@ jobs:
# pip install bleurt@https://github.com/google-research/bleurt/archive/b610120347ef22b494b6d69b4316e303f5932516.zip#egg=bleurt
# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
-
name
:
Test with pytest
run
:
python -m pytest -s -v -n=auto tests/test_evaluator.py
run
:
python -m pytest -s -v -n=auto tests/test_evaluator.py
tests/test_tasks.py
tests/test_tasks.py
View file @
1c27e371
...
...
@@ -17,7 +17,7 @@ def limit(limit=10):
def
test_download
(
task_class
):
task_class
().
download
()
assert
task_class
.
dataset
is
not
None
assert
task_class
()
.
dataset
is
not
None
def
test_has_training_docs
(
task_class
):
...
...
@@ -37,15 +37,15 @@ def test_check_validation_docs(task_class):
def
test_has_test_docs
(
task_class
):
assert
task_class
.
has_training_docs
()
in
[
True
,
False
]
assert
task_class
()
.
has_training_docs
()
in
[
True
,
False
]
def
test_check_test_docs
(
task_class
):
assert
task_class
.
has_training_docs
()
assert
task_class
()
.
has_training_docs
()
def
test_should_decontaminate
(
task_class
):
assert
task_class
.
should_decontaminate
()
in
[
True
,
False
]
assert
task_class
()
.
should_decontaminate
()
in
[
True
,
False
]
def
test_doc_to_text
(
task_class
,
limit
):
...
...
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