Commit a737c802 authored by Leo Gao's avatar Leo Gao
Browse files

Remove .download mocking

parent 19b0f529
...@@ -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]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment