From 21d7fa260a2e7ab87cf2d7087d413001e01c20df Mon Sep 17 00:00:00 2001
From: Ernesto Rico Schmidt <ernesto@helsinki.at>
Date: Wed, 24 Jul 2024 15:00:22 -0400
Subject: [PATCH] test: remove tests for creating & deleting notes

---
 program/tests/test_notes.py | 51 +------------------------------------
 1 file changed, 1 insertion(+), 50 deletions(-)

diff --git a/program/tests/test_notes.py b/program/tests/test_notes.py
index 7ce22e28..054651a1 100644
--- a/program/tests/test_notes.py
+++ b/program/tests/test_notes.py
@@ -1,7 +1,7 @@
 import pytest
 
 from conftest import assert_data
-from program.models import LinkType, Note, TimeSlot
+from program.models import LinkType, TimeSlot
 from program.tests.factories import NoteFactory
 
 pytestmark = pytest.mark.django_db
@@ -37,39 +37,6 @@ def test_read_notes_as_unauthenticated_user(api_client):
     assert len(response.data) == NOTES
 
 
-@pytest.mark.django_db(transaction=True)
-def test_create_note_for_owned_show_fails_if_it_exists(
-    user_with_note_perms, api_client_note_perms, owned_show_once_timeslot_perms
-):
-    data = note_data(timeslot=owned_show_once_timeslot_perms)
-
-    response = api_client_note_perms.post(url(), data=data)
-
-    assert response.status_code == 400
-
-
-def test_create_note_for_owned_show(
-    user_with_note_perms, api_client_note_perms, owned_show_once_timeslot_perms
-):
-    Note.objects.get(pk=owned_show_once_timeslot_perms.note.id).delete()
-
-    data = note_data(timeslot=owned_show_once_timeslot_perms)
-
-    response = api_client_note_perms.post(url(), data=data)
-
-    assert response.status_code == 201
-
-
-def test_create_note_not_found_for_not_owned_show(
-    user_with_note_perms, api_client_note_perms, show_once_timeslot
-):
-    data = note_data(timeslot=show_once_timeslot)
-
-    response = api_client_note_perms.patch(url(note=show_once_timeslot.note), data=data)
-
-    assert response.status_code == 404
-
-
 def test_update_note_for_owned_show(
     user_with_note_perms, api_client_note_perms, owned_show_once_timeslot_perms
 ):
@@ -109,19 +76,3 @@ def test_update_note_links(
     assert response.status_code == 200
 
     assert_data(response, update)
-
-
-def test_delete_note_for_owned_show(
-    user_with_note_perms, api_client_note_perms, owned_show_once_timeslot_perms
-):
-    response = api_client_note_perms.delete(url(note=owned_show_once_timeslot_perms.note))
-
-    assert response.status_code == 204
-
-
-def test_delete_note_not_found_for_not_owned_show(
-    user_with_note_perms, api_client_note_perms, once_timeslot
-):
-    response = api_client_note_perms.delete(url(note=once_timeslot.note))
-
-    assert response.status_code == 404
-- 
GitLab