Skip to content

Commit b6621d2

Browse files
author
Rafael Henter
committed
fix again
1 parent e955d3a commit b6621d2

9 files changed

Lines changed: 12 additions & 16 deletions

File tree

test-django-project/testapp/models.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
from django.db import models
22

3+
from django_models.fields import CharFieldDigitsOnly
34
from django_models.models import (
4-
UUIDModel,
55
HistoryModel,
66
SignalsModel,
7-
TimestampedModel,
8-
SerializerModel,
97
)
10-
from django_models.fields import CharFieldDigitsOnly
118
from django_models.models.generic import (
129
SortOrderModel,
1310
SerializerModel,

test-django-project/tests/test_context_passing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import pytest
2+
23
from testapp.models import SampleSignalsModel
34

45
pytestmark = pytest.mark.django_db

test-django-project/tests/test_fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import pytest
21
import uuid
32

3+
import pytest
44
from django.forms import ValidationError
55

66
from testapp.models import SampleModel, SampleDigitsOnlyField

test-django-project/tests/test_forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pytest
2-
32
from django.forms import ValidationError
3+
44
from django_models.forms import CNPJField, CPFField
55

66

test-django-project/tests/test_generic_models.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import pytest
21
from uuid import UUID
3-
from django.test import TestCase
2+
3+
import pytest
44
from django.db import models
5+
56
from django_models.models.generic import UUIDModel
67
from testapp.models import (
78
TestSortOrderModel,

test-django-project/tests/test_generic_utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import pytest
1+
import codecs
22
import os
33
import tempfile
4-
import codecs
5-
from pathlib import Path
4+
65
from django_models.utils.generic import find_path, get_version_from_changes
76

87

test-django-project/tests/test_managers.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import pytest
2-
from django.test import TestCase
3-
from django.db import models
4-
from django.utils import timezone
2+
53
from django_models.models.managers import SoftDeleteSignalsManager
64
from testapp.models import TestSignalsModel, TestSoftDeleteModel
75

test-django-project/tests/test_models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import pytest
21
from uuid import UUID
32

3+
import pytest
4+
45
from django_models.models.exceptions import HistoryModelNotSetError
56
from testapp.models import (
67
SampleSignalsModel,

test-django-project/tests/test_validators.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import pytest
21
from django_models.validators import dv_maker, validate_cpf, validate_cnpj, SEQ_VALUES
32

43

0 commit comments

Comments
 (0)