Coverage for src/code_beatrix/scratchs/example_pyramide/__init__.py: 75%

12 statements  

« 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 

6 

7 

8def check_pyramide(): 

9 """ 

10 basic checkings 

11 """ 

12 dirname = os.path.dirname(__file__) 

13 f1 = os.path.join(dirname, "pyramide.sb2") 

14 if not os.path.exists(f1): 

15 raise FileNotFoundError(f1) 

16 f0 = os.path.join(dirname, "pyramide0.sb2") 

17 if not os.path.exists(f0): 

18 raise FileNotFoundError(f0) 

19 f2 = os.path.join(dirname, "pyramide_bio.sb2") 

20 if not os.path.exists(f2): 

21 raise FileNotFoundError(f2)