Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added version print out to log #1

Merged
merged 1 commit into from
Oct 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions GradescopeGrader/Grader.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@


import json
import logging
import os

from typing import List, Union

from . import Test
from . import _Meta


class Grader(object):
Expand All @@ -23,6 +25,14 @@ def __init__(self) -> None:

self.tests: List[Test.Test] = []

self.logger = logging.getLogger(
__name__ + '.' + self.__class__.__name__
)
self.logger.info('{} version {}'.format(
_Meta.PKG_NAME,
_Meta.__version__,
))

def AddTest(self, test: Test.Test) -> None:
self.tests.append(test)

Expand Down
6 changes: 6 additions & 0 deletions runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,15 @@
###


import logging

from tests.unittest import main


if __name__ == '__main__':
logging.basicConfig(
level=logging.DEBUG,
format='%(asctime)s %(name)s[%(levelname)s]: %(message)s',
)
main()