Add main() to logging test file

pull/21/head
Dan Puttick 2017-07-19 13:19:48 -04:00
parent 338bd5a018
commit 5527cbeeb7
1 changed files with 14 additions and 1 deletions

View File

@ -4,7 +4,7 @@
import os
import datetime
import pytest
from bin.filecheck import KittenGroomerFileCheck
def save_logs(groomer, test_description):
@ -31,3 +31,16 @@ def save_logs(groomer, test_description):
with open(groomer.logger.log_debug_out, 'rb') as debug_out:
out = debug_out.read()
test_log.write(out)
def main():
groomer = KittenGroomerFileCheck()
groomer.run()
save_logs(groomer, "Groomer")
# initialize groomer
# run groomer
# save logs
if __name__ == '__main__':
main()