Skip to content

Commit

Permalink
Move explanatory comment into function
Browse files Browse the repository at this point in the history
  • Loading branch information
benbc committed Sep 24, 2024
1 parent 7124bd6 commit 9687695
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/metrics/timescaledb/test_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ def get_rows(engine, table):


def assert_is_hypertable(connection, engine, table):
# check there are timescaledb child tables
# https://stackoverflow.com/questions/1461722/how-to-find-child-tables-that-inherit-from-another-table-in-psql

sql = """
SELECT
count(*)
Expand Down Expand Up @@ -83,9 +86,6 @@ def test_ensure_hypertable(engine, hypertable):
assert not db._has_table(connection, hypertable)
db._ensure_table(connection, hypertable)
assert db._has_table(connection, hypertable)

# check there are timescaledb child tables
# https://stackoverflow.com/questions/1461722/how-to-find-child-tables-that-inherit-from-another-table-in-psql
assert_is_hypertable(connection, engine, hypertable)


Expand Down

0 comments on commit 9687695

Please sign in to comment.