mirror of
https://github.com/apache/superset.git
synced 2026-05-07 17:04:58 +00:00
fix(playwright): use superset shell instead of python -c in bashlib
Replace inline `python -c` block with `superset shell` heredoc, which has the Flask app context pre-loaded. Drops the create_app()/app_context() boilerplate and addresses review feedback. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2
.github/workflows/bashlib.sh
vendored
2
.github/workflows/bashlib.sh
vendored
@@ -129,6 +129,8 @@ playwright_testdata() {
|
||||
superset init
|
||||
# Enable DML on the examples database so Playwright tests can create/drop
|
||||
# temporary tables via SQL Lab without depending on external data sources.
|
||||
# Uses `superset shell` (Flask shell with app context pre-loaded) rather
|
||||
# than `python -c` to avoid the create_app()/app_context() boilerplate.
|
||||
superset shell <<'PYEOF'
|
||||
import sys
|
||||
from superset.extensions import db
|
||||
|
||||
Reference in New Issue
Block a user