/Users/Mike/Development/git-ext/WebDuck/.venv/lib/python3.11/site-packages/pytest_asyncio/plugin.py:306: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the fixture scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session". Set it to "fixture-scope" to keep the current behavior.

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
============================= test session starts ==============================
platform darwin -- Python 3.11.14, pytest-9.2.0, pluggy-1.7.0
rootdir: /Users/Mike/Development/git-ext/WebDuck
configfile: pyproject.toml
plugins: anyio-4.16.0, asyncio-1.5.0
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
collected 229 items

tests/test_api_admin.py   PASS  test_login_success
.  PASS  test_login_wrong_password
.  PASS  test_login_nonexistent_user
.  PASS  test_create_project
.  PASS  test_create_duplicate_project
.  PASS  test_list_projects
.  PASS  test_delete_project
.  PASS  test_delete_nonexistent_project
.  PASS  test_unauthorized_no_token
.  PASS  test_create_database
.  PASS  test_list_databases
.  PASS  test_delete_database
.  PASS  test_set_database_password
.  PASS  test_enable_write_protection
.  PASS  test_disable_write_protection
.  PASS  test_write_protection_requires_auth
.  PASS  test_list_users
.  PASS  test_create_user
.  PASS  test_delete_user
.  PASS  test_delete_user_removes_query_history
.  PASS  test_cannot_delete_self
.                            [  9%]
tests/test_api_db.py   PASS  test_select
.  PASS  test_invalid_sql
.  PASS  test_query_nonexistent_db
.  PASS  test_ddl_and_dml
.  PASS  test_write_blocked_on_protected
.  PASS  test_read_allowed_on_protected
.  PASS  test_import_blocked_on_protected
.  PASS  test_no_project_key_no_password
.  PASS  test_wrong_password
.  PASS  test_password_set_no_header
.  PASS  test_list_tables
.  PASS  test_list_projects
.  PASS  test_list_databases
.  PASS  test_db_accesses_count_traffic
.  PASS  test_metadata_endpoints_not_counted
.  PASS  test_unauthorized_access_not_counted
.                                    [ 16%]
tests/test_auth.py   PASS  test_create_and_verify_user
.  PASS  test_create_duplicate_user
.  PASS  test_verify_wrong_password
.  PASS  test_verify_nonexistent_user
.  PASS  test_user_exists
.  PASS  test_list_users
.  PASS  test_delete_user
.  PASS  test_delete_nonexistent_user
.  PASS  test_jwt_roundtrip
.  PASS  test_jwt_invalid_token
.  PASS  test_users_persist_to_file
.  PASS  test_set_and_verify_password
.  PASS  test_wrong_password
.  PASS  test_read_access_grants_write
.  PASS  test_read_does_not_grant_write
.  PASS  test_nonexistent_project
.  PASS  test_remove_database_password
.  PASS  test_remove_database_password_keeps_other_entries
.  PASS  test_remove_database_password_nonexistent
.  PASS  test_write_protection_roundtrip
.  PASS  test_write_protection_defaults_false
.  PASS  test_write_protection_persists
.  PASS  test_remove_password_keeps_write_protection
.  PASS  test_remove_database_config_entry_clears_write_protection
.                              [ 26%]
tests/test_config.py   PASS  test_default_config
.  PASS  test_load_nonexistent_returns_defaults
.  PASS  test_save_and_load_roundtrip
.  PASS  test_save_config_serializes_path
.                                                [ 28%]
tests/test_dashboard_footer.py   PASS  test_footer_total_line_only_with_rows
.  PASS  test_footer_trash_line_only_when_trash_present
.  PASS  test_footer_both_lines_when_rows_and_trash
.  PASS  test_footer_empty_when_no_rows_and_no_trash
.                                      [ 30%]
tests/test_full_api.py sssssssssssssssssssssssssssssssssssssssssssssssss [ 51%]
s                                                                        [ 51%]
tests/test_logging.py   PASS  test_logging_disabled_by_default
.  PASS  test_logging_enabled_creates_file
.  PASS  test_log_query_does_nothing_when_disabled
.  PASS  test_log_query_writes_to_file
.  PASS  test_log_query_error
.  PASS  test_rotation_config
.  PASS  test_get_logger_returns_consistent_instance
.                                            [ 55%]
tests/test_sql_upload.py   PASS  test_all_statements_succeed
.  PASS  test_statement_count
.  PASS  test_tables_created
.  PASS  test_views_created
.  PASS  test_indexes_created
.  PASS  test_sequences_created
.  PASS  test_macros_created
.  PASS  test_custom_types_created
.  PASS  test_employee_count
.  PASS  test_department_count
.  PASS  test_project_count
.  PASS  test_task_count
.  PASS  test_view_query
.  PASS  test_macro_double_value
.  PASS  test_macro_is_high_salary
.  PASS  test_macro_full_name
.  PASS  test_full_script_succeeds
.  PASS  test_all_objects_dropped
.  PASS  test_stop_on_first_error
.  PASS  test_empty_sql_returns_empty
.  PASS  test_whitespace_only_sql
.                           [ 64%]
tests/test_storage.py   PASS  test_list_projects_empty
.  PASS  test_create_and_list_databases
.  PASS  test_create_duplicate_database
.  PASS  test_delete_database
.  PASS  test_delete_nonexistent_database
.  PASS  test_delete_project
.  PASS  test_delete_nonexistent_project
.  PASS  test_execute_query
.  PASS  test_query_nonexistent_database
.  PASS  test_query_syntax_error
.  PASS  test_get_table_info
.  PASS  test_import_export_csv
.  PASS  test_import_export_parquet
.  PASS  test_import_export_json
.  PASS  test_import_parquet_missing_file
.  PASS  test_import_json_missing_file
.  PASS  test_import_data_dispatch
.  PASS  test_detect_format
.  PASS  test_list_projects_finds_dirs
.  PASS  test_compact_database_with_foreign_keys
.  PASS  test_compact_database_missing
.  PASS  test_compact_database_self_referential_fk
.  PASS  test_fragmentation_missing_database
.  PASS  test_fragmentation_fresh_database
.  PASS  test_fragmentation_after_drop_table
.  PASS  test_trash_and_restore_database
.  PASS  test_trash_and_restore_project
.  PASS  test_trash_project_lists_contained_databases
.  PASS  test_trash_project_strips_credentials
.  PASS  test_trash_restore_conflict
.  PASS  test_empty_trash
.  PASS  test_delete_single_trash_entry
.  PASS  test_delete_single_trash_entry_missing_is_false
.  PASS  test_trash_database_recreates_missing_project
.  PASS  test_trash_dir_not_listed_as_project
.  PASS  test_create_project_trash_name_blocked
.  PASS  test_write_protected_rejects_write
.  PASS  test_write_protected_allows_read
.  PASS  test_write_protection_can_be_released
.  PASS  test_compact_allowed_on_write_protected
.  PASS  test_write_protected_blocks_import
.  PASS  test_unprotected_import_still_works
.  PASS  test_record_increments_series
.  PASS  test_bucket_distribution
.  PASS  test_old_events_pruned
.  PASS  test_gui_traffic_not_counted
.     [ 84%]
tests/test_user_prefs.py   PASS  test_inserts_newest_first
.  PASS  test_skips_consecutive_duplicate
.  PASS  test_keeps_only_max_entries
.  PASS  test_dedup_still_trims
.  PASS  test_drops_project_and_database_when_project_deleted
.  PASS  test_drops_database_when_db_deleted_but_project_kept
.  PASS  test_keeps_valid_references
.  PASS  test_keeps_unknown_keys
.  PASS  test_same_db_name_dropped_when_not_in_target_project
.  PASS  test_all_views_pruned
.  PASS  test_removes_single_database_keeps_others
.  PASS  test_removes_whole_project_without_database
.  PASS  test_removes_project_across_all_users
.  PASS  test_cascades_empty_projects_and_users
.  PASS  test_leaves_unrelated_users_untouched
.  PASS  test_no_change_when_target_missing
.  PASS  test_no_change_when_project_missing
.  PASS  test_prunes_deleted_project_from_prefs
.  PASS  test_prunes_deleted_database_keeps_project
.  PASS  test_does_not_write_when_nothing_stale
.  PASS  test_prune_does_not_touch_query_history
.  PASS  test_drops_project_that_is_fully_gone
.  PASS  test_drops_database_that_is_fully_gone
.  PASS  test_keeps_live_project_and_database
.  PASS  test_keeps_history_for_trashed_database
.  PASS  test_keeps_whole_trashed_project
.  PASS  test_mixed_scenario
.  PASS  test_cascades_empty_users
.  PASS  test_leaves_unrelated_users_untouched
.  PASS  test_removes_history_for_fully_deleted_objects
.  PASS  test_does_not_write_when_nothing_stale
.  PASS  test_removes_database_history
.  PASS  test_removes_whole_project_history
.  PASS  test_does_not_write_when_nothing_to_remove
.  PASS  test_removes_user_from_prefs_and_history
.  PASS  test_missing_user_is_noop
.            [100%]

  179/179 tests passed

================== 179 passed, 50 skipped in 71.20s (0:01:11) ==================
