Skip to content

Commit

Permalink
Fixing test | IntegrityError -> ValidationError
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Oct 6, 2022
1 parent 6f1e410 commit 9bac802
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/sources/tests/tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import factory
from django.core.exceptions import ValidationError
from django.db import transaction, IntegrityError
from django.db import transaction
from mock import patch, Mock, ANY, PropertyMock

from core.collections.models import Collection
Expand Down Expand Up @@ -217,7 +217,7 @@ def test_source_version_create_negative__same_version(self):
mnemonic=source.mnemonic,
organization=source.organization
)
with self.assertRaises(IntegrityError):
with self.assertRaises(ValidationError):
source_version.full_clean()
source_version.save()

Expand Down

0 comments on commit 9bac802

Please sign in to comment.