Skip to content

Commit

Permalink
test for time_buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
espinielli committed Mar 20, 2024
1 parent 8636cd4 commit a411eba
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_trino.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,16 @@ def test_complex_queries() -> None:
assert df.callsign.iloc[0] == "THY5HT"
assert df.icao24.iloc[0] == "4bb1c5"

df = trino.history(
start="2024-03-16 09:00",
stop="2024-03-16 11:00",
time_buffer='25m',
airport="UGTB",
bounds=(44.958636,41.665760,44.965417,41.670505)
)
assert df is not None
assert len(df.groupby(["icao24", "callsign"])) == 4


def test_specific_columns() -> None:
df = trino.history(
Expand Down

0 comments on commit a411eba

Please sign in to comment.