Skip to content

Commit

Permalink
Fix unittests
Browse files Browse the repository at this point in the history
SimpleTestCase does not allow database access.

[noissue]
  • Loading branch information
mdellweg authored and ipanova committed Oct 26, 2021
1 parent ccf724e commit 342587a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pulpcore/tests/unit/models/test_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from django.core.files.uploadedfile import SimpleUploadedFile

from django.conf import settings
from django.test import SimpleTestCase, TestCase
from django.test import TestCase
from pulpcore.plugin.exceptions import (
UnsupportedDigestValidationError,
MissingDigestValidationError,
Expand Down Expand Up @@ -82,7 +82,7 @@ def test_read_temp_file(self):
assert b"temp file test" in temp_file.file.read()


class ArtifactAlgorithmTestCase(SimpleTestCase):
class ArtifactAlgorithmTestCase(TestCase):
@mock.patch(
"pulpcore.app.models.Artifact.FORBIDDEN_DIGESTS",
new_callable=mock.PropertyMock,
Expand Down

0 comments on commit 342587a

Please sign in to comment.