Skip to content

Commit

Permalink
tests for ascii-reading
Browse files Browse the repository at this point in the history
  • Loading branch information
heikoklein committed Jan 15, 2024
1 parent 0031a94 commit 168f571
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/test_Ascii2NetcdfTimeseries.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import unittest

import pyaro
import pyaro.timeseries

EBAS_URL = "/disk1/tmp/NILU/"

class TestAscii2NetcdfTimeSeriesReader(unittest.TestCase):
engine = "ascii2netcdf"
def test_engine(self):
self.assertIn(self.engine, pyaro.list_timeseries_engines())

def test_open(self):
with pyaro.open_timeseries(
self.engine,
EBAS_URL,
resolution="daily",
filters=[]
) as ts:
self.assertGreater(len(ts.variables()), 0)
self.assertGreater(len(ts.stations()), 0)


0 comments on commit 168f571

Please sign in to comment.