chore: update backend tests

This commit is contained in:
2026-06-16 12:01:03 +03:00
parent 0a7a6ae9ec
commit 94deca6ec9
16 changed files with 149 additions and 89 deletions

View File

@@ -1,3 +1,11 @@
# #region Test.Core.DefensiveGuards [C:3] [TYPE Module] [SEMANTICS test,defensive,guards,git,superset]
# @BRIEF Tests verifying defensive null-guards and error handling in GitService and SupersetClient.
# @RELATION BINDS_TO -> [GitService]
# @RELATION BINDS_TO -> [SupersetClient]
# @TEST_EDGE: null_dashboard_id -> ValueError raised for None dashboard_id
# @TEST_EDGE: null_file_name -> ValueError raised for None file_name
# @TEST_EDGE: missing_base_dir -> Directory recreated on access
# @TEST_EDGE: invalid_git_repo -> Recloned when path is not a valid repo
from pathlib import Path
import pytest
import shutil
@@ -151,3 +159,4 @@ async def test_git_service_configure_identity_updates_repo_local_config():
config_writer.set_value.assert_any_call("user", "name", "user_1")
config_writer.set_value.assert_any_call("user", "email", "user1@mail.ru")
# #endregion test_git_service_configure_identity_updates_repo_local_config
# #endregion Test.Core.DefensiveGuards