diff --git a/eav/migrations/0010_dynamic_pk_type_for_models.py b/eav/migrations/0010_dynamic_pk_type_for_models.py index 1d276ef..28028ac 100644 --- a/eav/migrations/0010_dynamic_pk_type_for_models.py +++ b/eav/migrations/0010_dynamic_pk_type_for_models.py @@ -45,4 +45,4 @@ class Migration(migrations.Migration): serialize=False, ), ), - ] \ No newline at end of file + ] diff --git a/tests/test_models.py b/tests/test_models.py index 17a307a..7ec046c 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -35,17 +35,18 @@ class AttributeTestCase(TestCase): class ValueModelTestCase(TestCase): def setUp(self): eav.register(User) - self.attribute = Attribute.objects.create(name='Test Attribute', datatype=Attribute.TYPE_TEXT, slug="test_attribute") + self.attribute = Attribute.objects.create( + name='Test Attribute', datatype=Attribute.TYPE_TEXT, slug="test_attribute" + ) self.user = User.objects.create(username='crazy_dev_user') user_content_type = ContentType.objects.get_for_model(User) self.value = Value.objects.create( entity_id=self.user.id, entity_ct=user_content_type, value_text='Test Value', - attribute=self.attribute + attribute=self.attribute, ) def test_value_str(self): expected_str = f'{self.attribute.name}: "{self.value.value_text}" ({self.value.entity_pk_int})' self.assertEqual(str(self.value), expected_str) - diff --git a/tests/test_widgets.py b/tests/test_widgets.py index 21ba51d..01719f3 100644 --- a/tests/test_widgets.py +++ b/tests/test_widgets.py @@ -3,6 +3,7 @@ from django.forms import Textarea from django.test import TestCase from eav.widgets import CSVWidget + class TestCSVWidget(TestCase): def test_prep_value_string(self): self._extracted_from_test_prep_value_empty_2("Test Value")