Skip to content
This repository has been archived by the owner on Jun 7, 2020. It is now read-only.

Commit

Permalink
Skip test if it is redefined. #28
Browse files Browse the repository at this point in the history
  • Loading branch information
timoti111 committed Nov 21, 2017
1 parent 794a3c3 commit 8bf24e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ifj2017/test/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,16 @@ def _load_compact_tests(self, section_dir):

if name and code:
TestLogger.log_warning(
"Redefined test {} in file {}.".format(name, path.join(section_dir, 'tests.json'))
"Redefined test {} in file {}, skipping.".format(name, path.join(section_dir, 'tests.json'))
)
continue

if not name:
name = '{:03}'.format(i + 1)

if not code:
code = self._load_test_file(section_dir, name, 'code')

cases.append(
TestInfo(
name,
Expand Down

0 comments on commit 8bf24e7

Please sign in to comment.