This commit is contained in:
Egor Matveev 2021-11-11 14:44:42 +03:00
parent 1293d6ee2d
commit 3cbf1d67d1
2 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class BaseTester:
name = join("solution", '/'.join(dirs[:i + 1])) name = join("solution", '/'.join(dirs[:i + 1]))
if not exists(name): if not exists(name):
mkdir(name) mkdir(name)
with open(file.path, 'wb') as fs: with open(join("solution", file.path), 'wb') as fs:
fs.write(get_bytes(file.fs_id)) fs.write(get_bytes(file.fs_id))
self.solution.result = CONSTS["testing_status"] self.solution.result = CONSTS["testing_status"]
self.solution.save() self.solution.save()

View File

@ -12,6 +12,7 @@ class Python3Tester(BaseTester):
self.file = file self.file = file
break break
if self.file is None: if self.file is None:
print('no file')
raise TestException("TE") raise TestException("TE")
@property @property