Ejemplo n.º 1
0
def test_query(config):
    p = XarrayProvider(config)

    data = p.query()
    assert isinstance(data, dict)

    data = p.query(format_='zarr')
    assert isinstance(data, bytes)
Ejemplo n.º 2
0
def test_query(config):
    p = XarrayProvider(config)

    data = p.query()
    assert isinstance(data, dict)

    data = p.query(format_='NetCDF')
    assert isinstance(data, bytes)

    data = p.query(datetime_='2000-01-16')
    assert isinstance(data, dict)

    data = p.query(datetime_='2000-01-16/2000-04-16')
    assert isinstance(data, dict)

    with pytest.raises(ProviderQueryError):
        data = p.query(datetime_='2010-01-16')
Ejemplo n.º 3
0
def test_query(config):
    p = XarrayProvider(config)

    data = p.query()
    assert isinstance(data, dict)