Tests to see if stuff works and to illustrate a few points
test_path = Path('test_env')
create_test_folder(test_path)
text = """
-------------
:Files Last Changed: 2021-02-10 20:20:18.899966
:File Size: 1244762
:Number of Files: 3
:Hash: 975bd61edb1adec7b61b8fb459de04e775d286bcc5cd19a4be67c74c04044e46
Report
------
None
"""
re.sub('(.*\nReport\n-+\n)None(\n.*)', '\\1Dummy HTML Report\\2', text, re.MULTILINE)
env = DataIntakeEnv(test_path / '.config' / 'config.ini')
[sync_data_folder(env,group_type ) for group_type in [dm.Delivery, dm.Raw_Data, dm.Dataset] ]
[check_datagroup(env, group_type, light=False) for group_type in [dm.Delivery, dm.Raw_Data, dm.Dataset]]
shutil.rmtree(test_path)