File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 ImageTooLarge ,
2424 InactiveProject ,
2525 MetadataTooLarge ,
26+ < << << << HEAD
2627 ProjectInactive ,
2728 RequestQuotaReached ,
2829 RequestTimeTooSkewed ,
2930 TargetNameExist ,
3031 TargetStatusNotSuccess ,
32+ == == == =
33+ TargetNameExist ,
34+ > >> >> >> origin / master
3135 TargetStatusProcessing ,
3236 UnknownTarget ,
3337)
@@ -120,6 +124,7 @@ class _ResultCodes(Enum):
120124
121125
122126_EXCEPTIONS = {
127+ << << << < HEAD
123128 _ResultCodes .AUTHENTICATION_FAILURE : AuthenticationFailure ,
124129 _ResultCodes .REQUEST_TIME_TOO_SKEWED : RequestTimeTooSkewed ,
125130 _ResultCodes .TARGET_NAME_EXIST : TargetNameExist ,
@@ -134,6 +139,12 @@ class _ResultCodes(Enum):
134139 _ResultCodes .TARGET_STATUS_NOT_SUCCESS : TargetStatusNotSuccess ,
135140 _ResultCodes .PROJECT_INACTIVE : ProjectInactive ,
136141 _ResultCodes .INACTIVE_PROJECT : InactiveProject ,
142+ == == == =
143+ _ResultCodes .METADATA_TOO_LARGE : MetadataTooLarge ,
144+ _ResultCodes .TARGET_NAME_EXIST : TargetNameExist ,
145+ _ResultCodes .TARGET_STATUS_PROCESSING : TargetStatusProcessing ,
146+ _ResultCodes .UNKNOWN_TARGET : UnknownTarget ,
147+ >> >> >> > origin / master
137148}
138149
139150
Original file line number Diff line number Diff line change @@ -111,10 +111,12 @@ def test_add_two_targets_same_name(
111111 the same name.
112112 """
113113 client .add_target (name = 'x' , width = 1 , image = high_quality_image )
114-
115- with pytest .raises (TargetNameExist ):
114+ with pytest .raises (TargetNameExist ) as exc :
116115 client .add_target (name = 'x' , width = 1 , image = high_quality_image )
117116
117+ assert exc .value .response .status_code == codes .FORBIDDEN
118+
119+
118120
119121class TestAuthentication :
120122 """
You can’t perform that action at this time.
0 commit comments