File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ class WorkflowRun(GitHubSchema):
141
141
check_suite_id = fields .Integer ()
142
142
html_url = fields .Str ()
143
143
event = fields .Str ()
144
+ repository = fields .Nested (Repo )
144
145
workflow_id = fields .Integer ()
145
146
146
147
Original file line number Diff line number Diff line change @@ -70,15 +70,23 @@ def workflow_run_json():
70
70
71
71
def test_aggregated_workflow_run_api_client (client ):
72
72
"""Run the workflow run client with the GitHub mock server."""
73
+ head_sha = 'acb5820ced9479c074f688cc328bf03f341a511d'
74
+ owner = 'octocat'
75
+ repo = 'Hello-World'
73
76
workflow_runs = AggregatedWorkflowRuns .get (
74
77
client = client ,
75
- owner = 'octo-org' ,
76
- repo = 'Hello-World' ,
78
+ owner = owner ,
79
+ repo = repo ,
77
80
params = {
78
- 'head_sha' : 'd6fde92930d4715a2b49857d24b940956b26d2d3'
81
+ 'head_sha' : head_sha
79
82
}
80
83
)
81
84
assert workflow_runs .state == 'INPROGRESS'
85
+ assert workflow_runs .full_repo == f'{ owner } /{ repo } '
86
+ assert workflow_runs .commit == head_sha
87
+ assert workflow_runs .owner == owner
88
+ assert workflow_runs .repo == repo
89
+ assert workflow_runs .branch == 'master'
82
90
83
91
84
92
def test_aggregated_workflow_run (client , workflow_run_json ):
You can’t perform that action at this time.
0 commit comments