simonw / db-to-sqlite

CLI tool for exporting tables or queries from any SQL database to a SQLite file
Apache License 2.0
368 stars 28 forks source link

Run tests in GitHub Actions #33

Closed simonw closed 3 years ago

simonw commented 3 years ago

Refs #32

simonw commented 3 years ago
AssertionError: assert
  ('1/2: categories\n'\n '2/2: products\n'\n '\n'\n 'Adding 1 foreign key\n'\n '  products.cat_id => categories.id\n') == 
  ('1/2: categories\n'\n '\n'\n '2/2: products\n'\n '\n'\n '\n'\n 'Adding 1 foreign key\n'\n '  products.cat_id => categories.id\n')

There's some extra whitespace in there for some reason.

simonw commented 3 years ago

It's because of a click upgrade!

pip freeze | grep click
click==7.1.2

Those tests pass. If I upgrade to Click 8 they fail.

simonw commented 3 years ago

That test failure is in here: https://github.com/simonw/db-to-sqlite/blob/6570467ba776ce89b2255eb2643b339dd0f1d497/db_to_sqlite/cli.py#L126-L137