def test_ref_wo_build_config(): """Test reference function return value when build present but build_config is not""" from snakemakelib.bio.ngs.db.cloudbiolinux import ref cfg = {"bio.ngs.settings": {"db": {"build": "hg19", "build_config": None, "ref": "foo/bar"}}} assert ref("foobar", cfg["bio.ngs.settings"]["db"]) == "foo/foobar"
def test_ref_wo_build(): """Test reference function return value when build is missing""" from snakemakelib.bio.ngs.db.cloudbiolinux import ref cfg = {"bio.ngs.settings": {"db": {"build": None, "ref": "foo/bar"}}} assert ref("foobar", cfg["bio.ngs.settings"]["db"]) == "foo/foobar"