Skip to content

Commit

Permalink
Formatage avec Black
Browse files Browse the repository at this point in the history
  • Loading branch information
Situphen committed May 23, 2023
1 parent 2890b34 commit 995544a
Show file tree
Hide file tree
Showing 223 changed files with 0 additions and 355 deletions.
1 change: 0 additions & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def sighandler(signum, frame):
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "zds.settings.dev")

if len(sys.argv) > 1 and sys.argv[1] in ["migrate", "test"]:

from django.db.backends.mysql.creation import BaseDatabaseCreation

BaseDatabaseCreation.sql_table_creation_suffix = patch_create_suffix(
Expand Down
1 change: 0 additions & 1 deletion zds/featured/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("member", "0002_auto_20150601_1144"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/featured/migrations/0002_auto_20150622_0956.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("featured", "0001_initial"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("featured", "0002_auto_20150622_0956"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/featured/migrations/0004_auto_20150622_0957.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("featured", "0003_remove_featuredresource_authors"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/featured/migrations/0005_auto_20160114_1604.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("featured", "0004_auto_20150622_0957"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/featured/migrations/0006_python_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("featured", "0005_auto_20160114_1604"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/featured/migrations/0007_featuredrequested.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
("contenttypes", "0002_remove_content_type_name"),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
Expand Down
1 change: 0 additions & 1 deletion zds/featured/migrations/0008_mandatory_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def revert(*_):


class Migration(migrations.Migration):

dependencies = [
("featured", "0007_featuredrequested"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/featured/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ def get_initial(self):
return initial

def form_valid(self, form):

self.object.title = form.cleaned_data.get("title")
self.object.type = form.cleaned_data.get("type")
self.object.authors = form.cleaned_data.get("authors")
Expand Down
1 change: 0 additions & 1 deletion zds/forum/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ def clean(self):


class MoveTopicForm(forms.Form):

forum = forms.ModelChoiceField(
label=_("Forum"),
queryset=Forum.objects.all(),
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("utils", "0001_initial"),
("auth", "0001_initial"),
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0002_auto_20150410_1505.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0001_initial"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0003_auto_20150414_2324.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0002_auto_20150410_1505"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0003_auto_20151110_1145.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0003_auto_20150414_2324"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0004_topic_update_index_date.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0003_auto_20151110_1145"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0005_auto_20151119_2224.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0004_topic_update_index_date"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0006_auto_20160720_2259.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0005_auto_20151119_2224"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0007_auto_20160827_2035.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0006_auto_20160720_2259"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0008_auto_20161101_1122.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ def force_unicity(*args, **kwargs):


class Migration(migrations.Migration):

dependencies = [
("forum", "0008_remove_forum_image"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0008_remove_forum_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0007_auto_20160827_2035"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0009_remove_topic_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0008_auto_20161101_1122"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0010_auto_20161112_1823.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0009_remove_topic_key"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0011_auto_20170130_1823.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0010_auto_20161112_1823"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0012_auto_20170204_2239.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0011_auto_20170130_1823"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0013_auto_20170327_1349.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0012_auto_20170204_2239"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0014_topic_github_issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0013_auto_20170327_1349"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0015_python_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0014_topic_github_issue"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0016_topic_solved_by.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def forward(apps, schema_editor):


class Migration(migrations.Migration):

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("forum", "0015_python_3"),
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0017_auto_20190114_1301.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0016_topic_solved_by"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0019_post_is_potential_spam.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0018_auto_20200315_1749"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0019_post_is_potential_spam"),
]
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0021_remove_post_is_potential_spam.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0020_rename_post_is_potential_spam_to_temp_name_for_migration"),
# We must remove the field AFTER data was copied from this field to the comments table.
Expand Down
1 change: 0 additions & 1 deletion zds/forum/migrations/0022_topic_github_repository_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("forum", "0021_remove_post_is_potential_spam"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("forum", "0022_topic_github_repository_name"),
Expand Down
6 changes: 0 additions & 6 deletions zds/forum/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

class ForumMemberTests(TestCase):
def setUp(self):

settings.EMAIL_BACKEND = "django.core.mail.backends.locmem.EmailBackend"

self.category1 = ForumCategoryFactory(position=1)
Expand Down Expand Up @@ -383,7 +382,6 @@ def test_edit_post(self):
self.assertEqual(result.status_code, 404)

def test_edit_post_with_blank(self):

topic1 = TopicFactory(forum=self.forum11, author=self.user)
PostFactory(topic=topic1, author=self.user, position=1)
post2 = PostFactory(topic=topic1, author=self.user, position=2)
Expand Down Expand Up @@ -661,7 +659,6 @@ def test_answer_empty(self):
self.assertEqual(Post.objects.filter(topic=topic1.pk).count(), 1)

def test_add_tag(self):

tag_c_sharp = TagFactory(title="C#")

tag_c = TagFactory(title="C")
Expand Down Expand Up @@ -824,7 +821,6 @@ def test_frontend_can_create_topic_when_profile_can_write(self):

class ForumGuestTests(TestCase):
def setUp(self):

settings.EMAIL_BACKEND = "django.core.mail.backends.locmem.EmailBackend"

self.category1 = ForumCategoryFactory(position=1)
Expand Down Expand Up @@ -1163,7 +1159,6 @@ def get_topics(forum_pk, is_sticky, filter=None):

class ManagerTests(TestCase):
def setUp(self):

self.cat1 = ForumCategoryFactory()
self.forum1 = ForumFactory(category=self.cat1)
self.forum2 = ForumFactory(category=self.cat1)
Expand All @@ -1180,7 +1175,6 @@ def setUp(self):
TopicFactory(forum=self.forum3, author=self.staff.user)

def test_get_last_topics(self):

topics = Topic.objects.get_last_topics()
self.assertEqual(2, len(topics))

Expand Down
Loading

0 comments on commit 995544a

Please sign in to comment.