Browse Source

fix(integrations): typo in INSTALLATION_REPOSITORIES_API_RESPONSE (#58997)

Alexander Tarasov 1 year ago
parent
commit
650b4fec5d

+ 1 - 1
fixtures/github.py

@@ -661,7 +661,7 @@ INSTALLATION_REPO_EVENT = """{
   }
 }"""
 
-INTSTALLATION_REPOSITORIES_API_RESPONSE = """{
+INSTALLATION_REPOSITORIES_API_RESPONSE = """{
   "total_count": 1,
   "repositories": [
     {

+ 1 - 1
fixtures/github_enterprise.py

@@ -527,7 +527,7 @@ INSTALLATION_REPO_EVENT = """{
   }
 }"""
 
-INTSTALLATION_REPOSITORIES_API_RESPONSE = """{
+INSTALLATION_REPOSITORIES_API_RESPONSE = """{
   "total_count": 1,
   "repositories": [
     {

+ 1 - 1
src/sentry_plugins/github/testutils.py

@@ -875,7 +875,7 @@ INSTALLATION_REPO_EVENT = """{
   }
 }"""
 
-INTSTALLATION_REPOSITORIES_API_RESPONSE = """{
+INSTALLATION_REPOSITORIES_API_RESPONSE = """{
   "total_count": 1,
   "repositories": [
     {

+ 2 - 2
tests/sentry_plugins/github/test_provider.py

@@ -14,7 +14,7 @@ from sentry_plugins.github.plugin import GitHubAppsRepositoryProvider, GitHubRep
 from sentry_plugins.github.testutils import (
     COMPARE_COMMITS_EXAMPLE,
     GET_LAST_COMMITS_EXAMPLE,
-    INTSTALLATION_REPOSITORIES_API_RESPONSE,
+    INSTALLATION_REPOSITORIES_API_RESPONSE,
     LIST_INSTALLATION_API_RESPONSE,
 )
 
@@ -180,7 +180,7 @@ class GitHubAppsProviderTest(TestCase):
     @patch.object(
         GithubPluginAppsClient,
         "get_repositories",
-        return_value=json.loads(INTSTALLATION_REPOSITORIES_API_RESPONSE),
+        return_value=json.loads(INSTALLATION_REPOSITORIES_API_RESPONSE),
     )
     @patch.object(
         GithubPluginClient,