File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,10 @@ def test_can_resolve_check_done_github_app_installation_id():
79
79
assert isinstance (fake_installation_id , int )
80
80
81
81
82
+ @pytest .mark .skipif (
83
+ not HAS_DEMO_CHECK_DONE_ORGANIZATION_PROJECT_CONFIGURED ,
84
+ reason = REASON_SHOULD_HAVE_DEMO_CHECK_DONE_ORGANIZATION_PROJECT_CONFIGURED ,
85
+ )
82
86
def test_fails_to_resolve_check_done_github_app_installation_id ():
83
87
session = _session ()
84
88
with pytest .raises (AuthenticationError , match = "Could not retrieve installation ID: status=404 " ):
@@ -105,6 +109,8 @@ def test_fails_to_resolve_access_token_from_check_done_github_app_installation_i
105
109
106
110
107
111
def _session ():
112
+ assert DEMO_CHECK_DONE_GITHUB_APP_ID is not None
113
+ assert DEMO_CHECK_DONE_GITHUB_APP_PRIVATE_KEY is not None
108
114
jwt_token = generate_jwt_token (DEMO_CHECK_DONE_GITHUB_APP_ID , DEMO_CHECK_DONE_GITHUB_APP_PRIVATE_KEY )
109
115
session = requests .Session ()
110
116
session .headers = {"Accept" : "application/vnd.github+json" }
You can’t perform that action at this time.
0 commit comments