Skip to content
Snippets Groups Projects
Commit a654ff4e authored by Nathan Hertz's avatar Nathan Hertz
Browse files

Added unit test for vulture execution; updated gitignore with vulture

log files
parent 474ce5c0
No related branches found
No related tags found
No related merge requests found
......@@ -58,4 +58,5 @@ projects_checklist.txt
deps.png
build/pkgs
**/eggs
**/parts
\ No newline at end of file
**/parts
**/vulture_*.log
\ No newline at end of file
from vulture.condorlite import Job, MockLogger
import pytest
def test_execution(caplog):
"""
Test execution of the null executable
"""
log_entries = [
"000 (4242.000.000)",
"Job submitted from host: <0.0.0.0:7777>",
"Job executing on host: <0.0.0.0:7777>",
"Job terminated.",
" Job node: null"
]
test_job = Job("test/null.condor")
test_job.execute()
output = "\n".join([record.message for record in caplog.records])
assert [entry in output for entry in log_entries]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment