Skip to content

Commit 5d30bef

Browse files
committed
Fix lint issues
1 parent 628f378 commit 5d30bef

2 files changed

Lines changed: 7 additions & 18 deletions

File tree

src/vws/vws.py

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,11 @@
2323
ImageTooLarge,
2424
InactiveProject,
2525
MetadataTooLarge,
26-
<<<<<<< HEAD
2726
ProjectInactive,
2827
RequestQuotaReached,
2928
RequestTimeTooSkewed,
3029
TargetNameExist,
3130
TargetStatusNotSuccess,
32-
=======
33-
TargetNameExist,
34-
>>>>>>> origin/master
3531
TargetStatusProcessing,
3632
UnknownTarget,
3733
)
@@ -124,27 +120,20 @@ class _ResultCodes(Enum):
124120

125121

126122
_EXCEPTIONS = {
127-
<<<<<<< HEAD
128123
_ResultCodes.AUTHENTICATION_FAILURE: AuthenticationFailure,
129-
_ResultCodes.REQUEST_TIME_TOO_SKEWED: RequestTimeTooSkewed,
130-
_ResultCodes.TARGET_NAME_EXIST: TargetNameExist,
131-
_ResultCodes.UNKNOWN_TARGET: UnknownTarget,
132124
_ResultCodes.BAD_IMAGE: BadImage,
133-
_ResultCodes.IMAGE_TOO_LARGE: ImageTooLarge,
134-
_ResultCodes.METADATA_TOO_LARGE: MetadataTooLarge,
135125
_ResultCodes.DATE_RANGE_ERROR: DateRangeError,
136126
_ResultCodes.FAIL: Fail,
137-
_ResultCodes.TARGET_STATUS_PROCESSING: TargetStatusProcessing,
138-
_ResultCodes.REQUEST_QUOTA_REACHED: RequestQuotaReached,
139-
_ResultCodes.TARGET_STATUS_NOT_SUCCESS: TargetStatusNotSuccess,
140-
_ResultCodes.PROJECT_INACTIVE: ProjectInactive,
127+
_ResultCodes.IMAGE_TOO_LARGE: ImageTooLarge,
141128
_ResultCodes.INACTIVE_PROJECT: InactiveProject,
142-
=======
143129
_ResultCodes.METADATA_TOO_LARGE: MetadataTooLarge,
130+
_ResultCodes.PROJECT_INACTIVE: ProjectInactive,
131+
_ResultCodes.REQUEST_QUOTA_REACHED: RequestQuotaReached,
132+
_ResultCodes.REQUEST_TIME_TOO_SKEWED: RequestTimeTooSkewed,
144133
_ResultCodes.TARGET_NAME_EXIST: TargetNameExist,
134+
_ResultCodes.TARGET_STATUS_NOT_SUCCESS: TargetStatusNotSuccess,
145135
_ResultCodes.TARGET_STATUS_PROCESSING: TargetStatusProcessing,
146136
_ResultCodes.UNKNOWN_TARGET: UnknownTarget,
147-
>>>>>>> origin/master
148137
}
149138

150139

tests/test_add_target.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ def test_authentication_error(
143143
image=high_quality_image,
144144
)
145145

146-
exception = exc.value
147-
assert exception.response.status_code == codes.BAD_REQUEST
146+
exception = exc.value
147+
assert exception.response.status_code == codes.BAD_REQUEST
148148

149149

150150
class TestImage:

0 commit comments

Comments
 (0)