Skip to content

Commit 635b293

Browse files
committed
Fix code format #303
Signed-off-by: tdruez <tdruez@nexb.com>
1 parent fd2bfd8 commit 635b293

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

component_catalog/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from django.core.exceptions import ObjectDoesNotExist
1818
from django.core.exceptions import ValidationError
1919
from django.core.validators import EMPTY_VALUES
20+
from django.db import IntegrityError
2021
from django.db import models
2122
from django.db.models import CharField
2223
from django.db.models import Count
@@ -31,7 +32,6 @@
3132
from django.utils.text import get_valid_filename
3233
from django.utils.text import normalize_newlines
3334
from django.utils.translation import gettext_lazy as _
34-
from django.db import IntegrityError
3535

3636
from attributecode.model import About
3737
from cyclonedx import model as cyclonedx_model

component_catalog/tests/test_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2620,7 +2620,7 @@ def test_package_model_update_from_purldb_duplicate_exception(self, mock_get_pur
26202620
}
26212621

26222622
mock_get_purldb_entries.return_value = [purldb_entry]
2623-
package_with_download_url = make_package(self.dataspace, package_url=package_url, download_url=download_url)
2623+
make_package(self.dataspace, package_url=package_url, download_url=download_url)
26242624
package_no_download_url = make_package(self.dataspace, package_url=package_url)
26252625

26262626
# Updating the package with the download_url form purldb_entry would violates the

0 commit comments

Comments
 (0)