Coverage for venv/lib/python3.12/site-packages/combinatrix/test/fixtures/settings_json.py: 0%

12 statements  

« prev     ^ index     » next       coverage.py v7.17.3, created at 2026-11-20 13:43 +0000

1import os, json 

2from combinatrix.testintegration import rel2abs 

3 

4 

5class SettingsJSONFactory(object): 

6 

7 @classmethod 

8 def get_json(cls, ident): 

9 if ident is None: 

10 return None 

11 path = rel2abs(__file__, "..", "resources", "fixtures", ident + ".settings.json") 

12 if os.path.exists(path): 

13 with open(path, "r", encoding="utf-8") as f: 

14 return json.loads(f.read()) 

15 return None