The ORM-based cleanup couldn't see devices created by the NiceGUI app's session, so the user delete hit a FK constraint. Raw SQL DELETE in correct order (children first) works reliably. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| conftest.py | ||
| test_account.py | ||
| test_devices.py | ||
The ORM-based cleanup couldn't see devices created by the NiceGUI app's session, so the user delete hit a FK constraint. Raw SQL DELETE in correct order (children first) works reliably. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| conftest.py | ||
| test_account.py | ||
| test_devices.py | ||