Exemplo n.º 1
0
    def test_merged(self):
        df = helios.merged(self.probe, self.starttime, self.endtime)
        check_data_output(df)

        starttime = datetime(2000, 1, 1, 0, 0, 0)
        endtime = datetime(2000, 1, 2, 0, 0, 0)
        with pytest.raises(RuntimeError):
            helios.merged(self.probe, starttime, endtime)
Exemplo n.º 2
0
def test_helios():
    """
    Tests for importing Helios data.

    Try and import a single days' worth of data for each data product.
    """
    starttime = datetime(1976, 1, 1, 0, 0, 0)
    endtime = datetime(1976, 1, 1, 23, 59, 59)
    helios.merged('1', starttime, endtime)