Commit 855b515a authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

TEST: I spent an hour trying to get coverage working with subprocess calls, when

I could have just done this all along. Not capturing the __main__ class, but
most of the way there
parent 383f7553
Pipeline #5695 passed with stage
in 20 seconds
......@@ -89,3 +89,16 @@ def test_runAsAdmin():
assert op.exists(op.join(dldir, 'abc.zip'))
assert op.exists(op.join(destdir, 'a', 'b'))
assert op.exists(op.join(destdir, 'c', 'd'))
def test_lookup():
assert admin.lookup('downloadFile') is routines.downloadFile
def test_main():
with tempdir():
make_archive('abc.zip', 'a/b', 'c/d')
admin.main(('extractArchive', 'abc.zip', '.'))
assert op.exists(op.join('a', 'b'))
assert op.exists(op.join('c', 'd'))
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