This commit is contained in:
Daisy Deng 2020-03-20 21:26:36 +00:00
Родитель 557fd0eb33
Коммит 2e6a9379a7
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -43,7 +43,7 @@ def test_ddp_extractive_summarization_cnndm_transformers(scripts, tmp):
@pytest.mark.integration @pytest.mark.integration
def test_ddp_abstractive_summarization_cnndm_transformers(scripts, tmp): def test_ddp_abstractive_summarization_cnndm_transformers(scripts, tmp):
script = scripts["ddp_bertsumabs"] script = scripts["ddp_bertsumabs"]
summary_filename = "bertsumext_prediction.txt" summary_filename = "bertsumabs_prediction.txt"
import subprocess import subprocess
process = subprocess.Popen( process = subprocess.Popen(
@ -70,5 +70,4 @@ def test_ddp_abstractive_summarization_cnndm_transformers(scripts, tmp):
print(stdout) print(stdout)
print(stderr) print(stderr)
assert False assert False
raise RuntimeError("something bad happened")
assert os.path.exists(os.path.join(tmp, summary_filename)) assert os.path.exists(os.path.join(tmp, summary_filename))