Evan
e73633697d
test: read re-encrypt bind params from positional args, not kwargs
...
The migrator passes bind params positionally to conn.execute(stmt, params),
so the assertion must read call_args.args[1] rather than call_args.kwargs.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-06-23 14:53:41 -07:00
Evan
69e4f6e254
test: pass real SQLAlchemy Row to _re_encrypt_row in integration tests
...
The re-encrypt path reads column values via row._mapping (SQLAlchemy 2.0
Row API), but the integration tests passed a plain dict, which has no
_mapping, raising AttributeError. Build a genuine Row via a small helper
that handles both the 1.4 and 2.0 Row constructor signatures.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-06-23 14:53:41 -07:00
Ville Brofeldt
af4dc3a9aa
fix(re-encrypt): handle non-id PKs and make command idempotent ( #40079 )
2026-05-12 17:59:52 -07:00
Andy
a6ad0bf169
fix(re-encrypt-secrets): use db.Model.metadata to discover encrypted … ( #39390 )
...
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-05-11 21:16:41 -07:00
Ujjwaljain16
2d44f52ad1
fix(encryption): resolve SECRET_KEY lazily to fix silent re-encrypt-secrets failures ( #37982 )
2026-02-20 14:10:09 -08:00
Maxime Beauchemin
e51b95ffa8
chore: enforce more ruff rules ( #31447 )
...
Co-authored-by: Elizabeth Thompson <eschutho@gmail.com >
2024-12-18 17:41:34 -08:00
Maxime Beauchemin
a849c29288
chore: enable lint PT009 'use regular assert over self.assert.*' ( #30521 )
2024-10-07 13:17:27 -07:00
Craig Rueda
89dbb9888c
chore(models): Adding encrypted field checks ( #28436 )
2024-05-13 09:29:52 -07:00
Maxime Beauchemin
2d63722150
chore: set up ruff as a new linter/formatter ( #28158 )
2024-04-24 17:19:53 -07:00
Maxime Beauchemin
c225e17a75
chore: consolidate the Superset python package metadata ( #27884 )
2024-04-15 14:44:47 -07:00
John Bodley
a4d5d7c6b9
chore(pre-commit): Add pyupgrade and pycln hooks ( #24197 )
2023-06-01 12:01:10 -07:00
ofekisr
b5119b8dff
refactor(tests): decouple unittests from integration tests ( #15473 )
...
* refactor move all tests to be under integration_tests package
* refactor decouple unittests from integration tests - commands
* add unit_tests package
* fix celery_tests.py
* fix wrong FIXTURES_DIR value
2021-07-01 18:03:07 +03:00