@@ -14,7 +14,7 @@ def test_get_config_from_cache(self, mock_cache):
1414 repo_id = "test_repo"
1515 cached_config = {
1616 "default_branch" : "main" ,
17- "code_review " : {"enabled" : True },
17+ "pull_request_assistant " : {"enabled" : True },
1818 "issue_addressing" : {"enabled" : True },
1919 "slash_commands" : {"enabled" : True },
2020 }
@@ -23,7 +23,7 @@ def test_get_config_from_cache(self, mock_cache):
2323 config = RepositoryConfig .get_config (repo_id )
2424
2525 assert config .default_branch == "main"
26- assert config .code_review .enabled is True
26+ assert config .pull_request_assistant .enabled is True
2727 assert config .issue_addressing .enabled is True
2828 assert config .slash_commands .enabled is True
2929 mock_cache .get .assert_called_once_with (f"{ CONFIGURATION_CACHE_KEY_PREFIX } { repo_id } " )
@@ -35,7 +35,7 @@ def test_get_config_from_repo(self, mock_cache, mock_repo_client):
3535 mock_repo_client .get_repository .return_value .default_branch = "main"
3636 mock_repo_client .get_repository_file .return_value = """
3737 default_branch: main
38- code_review :
38+ pull_request_assistant :
3939 enabled: true
4040 issue_addressing:
4141 enabled: true
@@ -46,7 +46,7 @@ def test_get_config_from_repo(self, mock_cache, mock_repo_client):
4646 config = RepositoryConfig .get_config (repo_id )
4747
4848 assert config .default_branch == "main"
49- assert config .code_review .enabled is True
49+ assert config .pull_request_assistant .enabled is True
5050 assert config .issue_addressing .enabled is True
5151 assert config .slash_commands .enabled is True
5252 mock_cache .set .assert_called_once_with (
@@ -63,7 +63,7 @@ def test_get_config_with_default_values(self, mock_cache, mock_repo_client):
6363 config = RepositoryConfig .get_config (repo_id )
6464
6565 assert config .default_branch == "main"
66- assert config .code_review .enabled is True
66+ assert config .pull_request_assistant .enabled is True
6767 assert config .issue_addressing .enabled is True
6868 assert config .slash_commands .enabled is True
6969 mock_cache .set .assert_called_once_with (
@@ -86,7 +86,7 @@ def test_get_config_with_invalid_yaml(self, mock_cache, mock_repo_client):
8686 config = RepositoryConfig .get_config (repo_id )
8787
8888 assert config .default_branch == "main"
89- assert config .code_review .enabled is True
89+ assert config .pull_request_assistant .enabled is True
9090 assert config .issue_addressing .enabled is True
9191 assert config .slash_commands .enabled is True
9292 mock_cache .set .assert_called_once_with (
@@ -105,7 +105,7 @@ def test_get_config_with_partial_yaml(self, mock_cache, mock_repo_client):
105105 config = RepositoryConfig .get_config (repo_id )
106106
107107 assert config .default_branch == "main"
108- assert config .code_review .enabled is True
108+ assert config .pull_request_assistant .enabled is True
109109 assert config .issue_addressing .enabled is True
110110 assert config .slash_commands .enabled is True
111111 mock_cache .set .assert_called_once_with (
0 commit comments