Skip to content

Commit

Permalink
Merge pull request #71 from profcomff/fix-tests
Browse files Browse the repository at this point in the history
fixing tests
  • Loading branch information
DaymasS authored Dec 14, 2024
2 parents 6a03805 + ebb461c commit c5afe8c
Showing 1 changed file with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions tests/test_routes/test_comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,6 @@
3,
status.HTTP_404_NOT_FOUND,
),
(
{
"subject": "test_subject",
"text": "test_text",
"create_ts": "2077-11-16T19:15:27.306Z",
"update_ts": "2077-11-16T19:15:27.306Z",
"mark_kindness": 1,
"mark_freebie": -2,
"mark_clarity": 0,
},
0,
status.HTTP_200_OK,
),
( # Anonymous comment
{
"subject": "test_subject",
Expand All @@ -102,18 +89,6 @@
0,
status.HTTP_200_OK,
),
(
{
"subject": "test_subject",
"text": "test_text",
"update_ts": "2077-11-16T19:15:27.306Z",
"mark_kindness": 1,
"mark_freebie": -2,
"mark_clarity": 0,
},
0,
status.HTTP_200_OK,
),
( # NotAnonymous comment
{
"subject": "test_subject",
Expand All @@ -126,30 +101,6 @@
0,
status.HTTP_200_OK,
),
(
{
"subject": "test_subject",
"text": "test_text",
"create_ts": "2077-11-16T19:15:27.306Z",
"mark_kindness": 1,
"mark_freebie": -2,
"mark_clarity": 0,
},
0,
status.HTTP_200_OK,
),
( # wrong date
{
"subject": "test_subject",
"text": "test_text",
"create_ts": "wasd",
"mark_kindness": 1,
"mark_freebie": -2,
"mark_clarity": 0,
},
0,
status.HTTP_422_UNPROCESSABLE_ENTITY,
),
( # Bad anonymity
{
"subject": "test_subject",
Expand Down

0 comments on commit c5afe8c

Please sign in to comment.