From 13083b3b9961ed986d8f614baf4a55f71426b5c9 Mon Sep 17 00:00:00 2001 From: Sebastiaan Zeeff <33516116+SebastiaanZ@users.noreply.github.com> Date: Sat, 19 Oct 2019 19:32:55 +0200 Subject: Fix indentation and missing word in docstring The last two lines in the docstring of `InfractionFactory` in the `test_active_infraction_migration.py` file were overindented by one space. I've removed the space. The docstring of the `test_loader_build_graph_gets_called_once` method in the `MigrationsTestCaseNoSideEffectsTests` calss of the `test_base.py` file was missing two words. Corrected. --- .../apps/api/tests/migrations/test_active_infraction_migration.py | 4 ++-- pydis_site/apps/api/tests/migrations/test_base.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'pydis_site') diff --git a/pydis_site/apps/api/tests/migrations/test_active_infraction_migration.py b/pydis_site/apps/api/tests/migrations/test_active_infraction_migration.py index c17a2083..2d5fd94c 100644 --- a/pydis_site/apps/api/tests/migrations/test_active_infraction_migration.py +++ b/pydis_site/apps/api/tests/migrations/test_active_infraction_migration.py @@ -47,8 +47,8 @@ class InfractionFactory: - `expires_at` (default: None; i.e, permanent) - `hidden` (default: False). - The parameters `infraction_model` and `user_model` can be used to pass in an instance of - both model classes from a different migration/project state. + The parameters `infraction_model` and `user_model` can be used to pass in an instance of + both model classes from a different migration/project state. """ user_id = next(cls.user_id) user = user_model.objects.create( diff --git a/pydis_site/apps/api/tests/migrations/test_base.py b/pydis_site/apps/api/tests/migrations/test_base.py index 12677720..5d38e2dd 100644 --- a/pydis_site/apps/api/tests/migrations/test_base.py +++ b/pydis_site/apps/api/tests/migrations/test_base.py @@ -77,7 +77,7 @@ class MigrationsTestCaseNoSideEffectsTests(TestCase): self.assertEqual(migration_executor().loader.project_state.call_args_list, expected_args) def test_loader_build_graph_gets_called_once(self, migration_executor): - """We should rebuild the before applying the second set of migrations.""" + """We should rebuild the migration graph before applying the second set of migrations.""" self.test_case.setUpTestData() migration_executor().loader.build_graph.assert_called_once() -- cgit v1.2.3