Skip to content
Snippets Groups Projects
Commit 15ab2e11 authored by fu2662cw's avatar fu2662cw :speech_balloon:
Browse files

Fix black error

parent 945e60ad
No related branches found
No related tags found
No related merge requests found
...@@ -196,10 +196,11 @@ class FixturesTest(TestCase): ...@@ -196,10 +196,11 @@ class FixturesTest(TestCase):
Fixtures can be used to populate the database which test data. Fixtures can be used to populate the database which test data.
They can be used in automated tests, but also in development. They can be used in automated tests, but also in development.
""" """
fixtures = ["sports.json"] fixtures = ["sports.json"]
def test_sports_created_by_fixture(self): def test_sports_created_by_fixture(self):
""" If the fixture is loaded there exists a sport with the given data. """ """If the fixture is loaded there exists a sport with the given data."""
sport = Sport.objects.get(pk=1) sport = Sport.objects.get(pk=1)
self.assertEqual(sport.name, "Jiu Jitsu") self.assertEqual(sport.name, "Jiu Jitsu")
self.assertEqual(sport.url, "http://www.test.de") self.assertEqual(sport.url, "http://www.test.de")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment