Skip to content

Commit

Permalink
Merge pull request #1 from lsd-ucsc/dev
Browse files Browse the repository at this point in the history
Added version print out to log
  • Loading branch information
zhenghaven authored Oct 15, 2023
2 parents 6e74502 + d25d8c2 commit b1816e2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
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()

0 comments on commit b1816e2

Please sign in to comment.