Skip to content

Commit c5fe65c

Browse files
Amrou BellalounaAmrou Bellalouna
authored andcommitted
Merge branch 'main' into map-rules-to-keywords
2 parents f07f03a + 20a7264 commit c5fe65c

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

pydis_site/apps/api/tests/test_infractions.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,39 +56,44 @@ def setUpTestData(cls):
5656
type='ban',
5757
reason='He terk my jerb!',
5858
hidden=True,
59+
inserted_at=dt(2020, 10, 10, 0, 0, 0, tzinfo=timezone.utc),
5960
expires_at=dt(5018, 11, 20, 15, 52, tzinfo=timezone.utc),
60-
active=True
61+
active=True,
6162
)
6263
cls.ban_inactive = Infraction.objects.create(
6364
user_id=cls.user.id,
6465
actor_id=cls.user.id,
6566
type='ban',
6667
reason='James is an ass, and we won\'t be working with him again.',
67-
active=False
68+
active=False,
69+
inserted_at=dt(2020, 10, 10, 0, 1, 0, tzinfo=timezone.utc),
6870
)
6971
cls.mute_permanent = Infraction.objects.create(
7072
user_id=cls.user.id,
7173
actor_id=cls.user.id,
7274
type='mute',
7375
reason='He has a filthy mouth and I am his soap.',
7476
active=True,
75-
expires_at=None
77+
inserted_at=dt(2020, 10, 10, 0, 2, 0, tzinfo=timezone.utc),
78+
expires_at=None,
7679
)
7780
cls.superstar_expires_soon = Infraction.objects.create(
7881
user_id=cls.user.id,
7982
actor_id=cls.user.id,
8083
type='superstar',
8184
reason='This one doesn\'t matter anymore.',
8285
active=True,
83-
expires_at=dt.now(timezone.utc) + datetime.timedelta(hours=5)
86+
inserted_at=dt(2020, 10, 10, 0, 3, 0, tzinfo=timezone.utc),
87+
expires_at=dt.now(timezone.utc) + datetime.timedelta(hours=5),
8488
)
8589
cls.voiceban_expires_later = Infraction.objects.create(
8690
user_id=cls.user.id,
8791
actor_id=cls.user.id,
8892
type='voice_ban',
8993
reason='Jet engine mic',
9094
active=True,
91-
expires_at=dt.now(timezone.utc) + datetime.timedelta(days=5)
95+
inserted_at=dt(2020, 10, 10, 0, 4, 0, tzinfo=timezone.utc),
96+
expires_at=dt.now(timezone.utc) + datetime.timedelta(days=5),
9297
)
9398

9499
def test_list_all(self):

pydis_site/apps/content/resources/guides/pydis-guides/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ As mentioned in the Contributing Guidelines, we have a simple style guide for ou
119119
[**Style Guide**](./style-guide/)
120120

121121
### 4. Create an issue
122-
The first step to any new contribution is an issue describing a problem with the current codebase or proposing a new feature. All the open issues are viewable on the GitHub repositories, for instance here is the [issues page for Sir Lancebot](https://github.com/python-discord/sir-lancebot/issues). If you have something that you want to implement open a new issue to present your idea. Otherwise you can browse the unassigned issues and ask to be assigned to one that you're interested in, either in the comments on the issue or in the [`#dev-contrib`](https://discord.gg/2h3qBv8Xaa) channel on Discord.
122+
The first step to any new contribution is an issue describing a problem with the current codebase or proposing a new feature. All the open issues are viewable on the GitHub repositories, for instance here is the [issues page for Sir Lancebot](https://github.com/python-discord/sir-lancebot/issues). If you have something that you want to implement open a new issue to present your idea. Otherwise, you can browse the unassigned issues and ask to be assigned to one that you're interested in, either in the comments on the issue or in the [`#dev-contrib`](https://discord.gg/2h3qBv8Xaa) channel on Discord.
123123

124124
[**How to write a good issue**](./issues/)
125125

0 commit comments

Comments
 (0)