This commit is contained in:
Egor Matveev
2021-11-19 20:51:09 +03:00
parent 1e975a4659
commit 6b6caffcff
8 changed files with 44 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
from os import listdir, getcwd
from os import listdir
from SprintLib.testers.BaseTester import BaseTester, TestException
@@ -7,13 +7,11 @@ class Python3Tester(BaseTester):
file = None
def before_test(self):
print(getcwd())
for file in listdir(self.solution.testing_directory):
if file.endswith(".py"):
self.file = file
break
if self.file is None:
print('no file')
raise TestException("TE")
@property