Coverage for src/code_beatrix/scratchs/example_echiquier/__init__.py: 78%
9 statements
« prev ^ index » next coverage.py v7.1.0, created at 2023-04-29 13:45 +0200
« prev ^ index » next coverage.py v7.1.0, created at 2023-04-29 13:45 +0200
1"""
2@file
3@brief basic checking
4"""
5import os
8def check_echiquier():
9 """
10 basic checkings
11 """
12 dirname = os.path.dirname(__file__)
13 f1 = os.path.join(dirname, "echiquier.sb2")
14 if not os.path.exists(f1):
15 raise FileNotFoundError(f1)
16 f0 = os.path.join(dirname, "echiquier0.sb2")
17 if not os.path.exists(f0):
18 raise FileNotFoundError(f0)