Skip to content

Commit

Permalink
test: Refactor utility functions verify_data and verify_schema
Browse files Browse the repository at this point in the history
By wrapping them into a container class `AssertionHelper`, it is easy
to parameterize them, and to provide them to the test functions using
a pytest fixture.

This way, they are reusable from database adapter implementations which
derive from PostgreSQL.

The motivation for this is because the metadata column prefix `_sdc`
needs to be adjusted for other database systems, as they reject such
columns, being reserved for system purposes. In the specific case of
CrateDB, it is enough to rename it like `__sdc`. Sad but true.
  • Loading branch information
amotl committed Dec 19, 2023
1 parent cf732e1 commit 860baf4
Showing 1 changed file with 140 additions and 132 deletions.
Loading

0 comments on commit 860baf4

Please sign in to comment.