Exemple #1
0
def test_get_finding_chart():

    rez = get_finding_chart(
        123.0, 33.3, "testSource",
        image_source='desi',
        output_format='pdf'
    )

    assert isinstance(rez, dict)
    assert rez["success"]
    assert rez["name"].find("testSource") != -1
    assert rez["data"].find(bytes("PDF", encoding='utf8')) != -1



    rez = get_finding_chart(
        123.0, 33.3, "testSource",
        imsize=1.0
    )
    assert not rez["success"]

    rez = get_finding_chart(
            123.0, 33.3, "testSource",
            image_source='zomg_telescope'
    )
    assert isinstance(rez, dict)
    assert not rez["success"]
Exemple #2
0
def test_get_finding_chart():
    rez = get_finding_chart(123.0,
                            33.3,
                            "testSource",
                            imsize=1.0,
                            image_source='dss')
    assert not rez["success"]

    rez = get_finding_chart(123.0,
                            33.3,
                            "testSource",
                            image_source='zomg_telescope')
    assert isinstance(rez, dict)
    assert not rez["success"]