From 0404c5d319d0cf85941b20e53a7dab1e9bf71bef Mon Sep 17 00:00:00 2001 From: jwansek Date: Wed, 19 Jan 2022 17:05:53 +0000 Subject: added testing and generating testing reports --- mark.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mark.py') diff --git a/mark.py b/mark.py index c9f0dbd..95bba55 100644 --- a/mark.py +++ b/mark.py @@ -25,7 +25,7 @@ def main(**kwargs): with open(kwargs["assessment"], "r") as f: assessment_struct = yaml.safe_load(f) - output = reflect.gen_reflection_report(submission_files, assessment_struct) + output = reflect.gen_reflection_report(submission_files, assessment_struct, kwargs) output_file = kwargs["out"] if kwargs["format"] == "yaml": strout = yaml.dump(output) @@ -34,6 +34,7 @@ def main(**kwargs): if output_file == "stdout": print(strout) + # input("\n\n[tempdir: %s] Press any key to close..." % tempdir) exit() if output_file == "auto": @@ -42,6 +43,8 @@ def main(**kwargs): with open(output_file, "w") as f: f.write(strout) + # input("\n\n[tempdir: %s] Press any key to close..." % tempdir) + if __name__ == "__main__": config = configparser.ConfigParser() config.read("smarker.conf") -- cgit v1.2.3