def test_sampledata_sqlite(datafile): """Test existence and openining (not reading) of sqlite sampledata""" filename = getattr(sampledata, datafile) data = niimpy.open(filename) assert isinstance(data, niimpy.Data1)
def test_users(): data = niimpy.open(DATA, tz=TZ) data.users()
def test_firstlast(): data = niimpy.open(DATA) print(data.first('AwareScreen', user=niimpy.ALL)) print(data.first('AwareScreen', user=niimpy.ALL)) print(data.count('AwareScreen', user=niimpy.ALL)) print(data.exists('AwareScreen', user=niimpy.ALL))
def test_user_table_counts(): data = niimpy.open(DATA) print(data.user_table_counts())
def test_tables(): data = niimpy.open(DATA) print(data.tables())
def test_users(): data = niimpy.open(DATA) data.users()
def test_connect(): data = niimpy.open(DATA) data.users()