[python][generator] Added check mwm size.

This commit is contained in:
Maksim Andrianov 2020-05-25 17:44:34 +03:00 committed by mpimenov
parent 28f285b575
commit 710e15e217

View file

@ -0,0 +1,13 @@
import os
from maps_generator.checks import check
def get_size_check_set(old_path: str, new_path: str) -> check.CompareCheckSet:
return check.build_check_set_for_files(
"Size check",
old_path,
new_path,
ext=".mwm",
do=lambda path: os.path.getsize(path),
)