File tree 1 file changed +23
-1
lines changed
snapshot_manager/snapshot_manager 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,29 @@ def render_as_markdown(self) -> str:
115
115
116
116
@property
117
117
def success (self ) -> bool :
118
- return self .copr_build_state .success
118
+ """Returns True if the underlying copr build state is "succeeded" or "forked".
119
+
120
+ Examples:
121
+
122
+ >>> BuildState(copr_build_state="succeeded").success
123
+ True
124
+
125
+ >>> BuildState(copr_build_state="forked").success
126
+ True
127
+
128
+ >>> BuildState(copr_build_state=CoprBuildStatus.SUCCEEDED).success
129
+ True
130
+
131
+ >>> BuildState(copr_build_state=CoprBuildStatus.FORKED).success
132
+ True
133
+
134
+ >>> BuildState(copr_build_state="waiting").success
135
+ False
136
+
137
+ >>> BuildState(copr_build_state=CoprBuildStatus.IMPORTING).success
138
+ False
139
+ """
140
+ return CoprBuildStatus (str (self .copr_build_state )).success
119
141
120
142
@property
121
143
def os (self ):
You can’t perform that action at this time.
0 commit comments