mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP fixes
This commit is contained in:
parent
da9fa1313c
commit
6aa83796ea
@ -282,7 +282,7 @@ class BuildCompleteSerializer(serializers.Serializer):
|
||||
build = self.context['build']
|
||||
|
||||
if build.incomplete_count > 0:
|
||||
raise ValidationError(_("Build order has incomplete outputs"))
|
||||
raise ValidationError(_("Build order has incomplete outputs"))
|
||||
|
||||
return data
|
||||
|
||||
|
@ -201,7 +201,6 @@ class BuildOutputCompleteTest(BuildAPITest):
|
||||
expected_code=201,
|
||||
)
|
||||
|
||||
# Accept unfinished
|
||||
self.build.refresh_from_db()
|
||||
|
||||
# Build should have been marked as complete
|
||||
|
Loading…
Reference in New Issue
Block a user