Commit e7af7178 authored by Leo Pound Singer's avatar Leo Pound Singer
Browse files

Fix unit test

parent 453608e6
import subprocess
import celery.exceptions
import pytest
from ..tasks import condor
......@@ -119,10 +120,9 @@ def test_check_output_fails(mock_condor_submit):
@pytest.mark.live_worker
@pytest.mark.skip("This test isn't working yet.")
def test_check_output_running(mock_condor_submit_running):
result = condor.check_output.delay(['sleep', '1'])
with pytest.raises(condor.JobRunning):
with pytest.raises(celery.exceptions.TimeoutError):
result.get(2)
......
Supports Markdown
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