Esempio n. 1
0
def test_metadata_only(update_ffmeta_metaonly_data2, tibanna_env):
    update_ffmeta_metaonly_data2.update(tibanna_env)
    with mock.patch('core.pony_utils.patch_metadata') as mock_request:
        ret = handler(update_ffmeta_metaonly_data2, None)
        # once for patch pf once for workflow run
        mock_request.call_count == 2
    assert ret
Esempio n. 2
0
def test_mcool_updates_fourfront_higlass(update_ffmeta_mcool, tibanna_env):
    update_ffmeta_mcool.update(tibanna_env)
    with mock.patch('core.pony_utils.patch_metadata'):
        with mock.patch('requests.post') as mock_request:
            ret = handler(update_ffmeta_mcool, None)
            mock_request.assert_called_once()
            assert ret
Esempio n. 3
0
def test_update_ffmeta_awsem_e2e(update_ffmeta_event_data, tibanna_env):
    update_ffmeta_event_data.update(tibanna_env)
    ret = handler(update_ffmeta_event_data, None)
    assert json.dumps(ret)
    assert 'awsem_postrun_json' in ret['ff_meta']
    assert ret['ff_meta'][
        'awsem_postrun_json'] == 'https://s3.amazonaws.com/tibanna-output/8fRIlIfwRNDT.postrun.json'
Esempio n. 4
0
def test_update_ffmeta_awsem_extra_md5(update_ffmeta_hicbam, tibanna_env):
    update_ffmeta_hicbam.update(tibanna_env)
    ret = handler(update_ffmeta_hicbam, None)
    assert json.dumps(ret)
    assert 'awsem_postrun_json' in ret['ff_meta']
    assert ret['ff_meta']['awsem_postrun_json'] == 'https://s3.amazonaws.com/tibanna-output/x2w1uKSsEvT0.postrun.json'
    assert 'md5sum' in ret['pf_meta'][1]['extra_files'][0]
    assert 'file_size' in ret['pf_meta'][1]['extra_files'][0]