From d9ff268d754e63a58ef09ebf77264a01bbd5bb22 Mon Sep 17 00:00:00 2001 From: Trey Hunner Date: Fri, 12 Jan 2024 17:01:12 -0800 Subject: [PATCH] Run ruff format --- relatives/tests/models.py | 7 ++++++- relatives/tests/tests.py | 3 +-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/relatives/tests/models.py b/relatives/tests/models.py index 6a3a066..5806770 100644 --- a/relatives/tests/models.py +++ b/relatives/tests/models.py @@ -35,7 +35,12 @@ class Sailor(models.Model): """Sailors have an admin URL and sometimes link to ships""" name = models.CharField(max_length=80) - ship = models.ForeignKey(Ship, null=True, on_delete=models.SET_NULL, verbose_name="sea ship") + ship = models.ForeignKey( + Ship, + null=True, + on_delete=models.SET_NULL, + verbose_name="sea ship", + ) @property def ship_name(self): diff --git a/relatives/tests/tests.py b/relatives/tests/tests.py index 0af1e23..b5ae651 100644 --- a/relatives/tests/tests.py +++ b/relatives/tests/tests.py @@ -1,4 +1,3 @@ -from __future__ import unicode_literals from django.test import TestCase from django.template.loader import render_to_string from django.urls import reverse @@ -260,4 +259,4 @@ def test_verbose_name_used_in_change_list(self): ship = Ship.objects.create(id=1, name="Star of India") Sailor.objects.create(name="John Ford", ship=ship) response = self.client.get(reverse("admin:tests_sailor_changelist")) - self.assertIn(b'sea ship', response.content) # verbose_name used + self.assertIn(b"sea ship", response.content) # verbose_name used