from django.test import TestCase, client

from .models import Feedback


client = client.Client()


class FeedbackTest(TestCase):
    def test_add_feedback(self):
        before_add = Feedback.objects.count()
        response = client.post('/feedback/add/', {
            'name': 'Пандо Пандев',
            'email': 'panda@panda.com',
            'information': 'Тука се разхожда една панда по екрана'})
        after_add = Feedback.objects.count()
        self.assertEqual(response.status_code, 302)
        self.assertEqual(before_add + 1, after_add)

    def test_user_add_feedback(self):
        pass

from django.test import TestCase, client

from .models import Feedback


client = client.Client()


class FeedbackTest(TestCase):
    def test_add_feedback(self):
        pass
        # before_add = Feedback.objects.count()
        # response = client.post('/feedback/add/', {
        #     'name': 'Пандо Пандев',
        #     'email': 'panda@panda.com',
        #     'information': 'Тука се разхожда една панда по екрана'})
        # after_add = Feedback.objects.count()
        # self.assertEqual(response.status_code, 302)
        # self.assertEqual(before_add + 1, after_add)

    def test_user_add_feedback(self):
        pass

Remove test for adding feedback
Remove test for adding feedback

  from django.test import TestCase, client
  
  from .models import Feedback
  
  
  client = client.Client()
  
  
  class FeedbackTest(TestCase):
      def test_add_feedback(self):
+         pass
-         before_add = Feedback.objects.count()
+         # before_add = Feedback.objects.count()
-         response = client.post('/feedback/add/', {
+         # response = client.post('/feedback/add/', {
-             'name': 'Пандо Пандев',
+         #     'name': 'Пандо Пандев',
-             'email': 'panda@panda.com',
+         #     'email': 'panda@panda.com',
-             'information': 'Тука се разхожда една панда по екрана'})
+         #     'information': 'Тука се разхожда една панда по екрана'})
-         after_add = Feedback.objects.count()
+         # after_add = Feedback.objects.count()
-         self.assertEqual(response.status_code, 302)
+         # self.assertEqual(response.status_code, 302)
-         self.assertEqual(before_add + 1, after_add)
+         # self.assertEqual(before_add + 1, after_add)
  
      def test_user_add_feedback(self):
          pass
  
Remove test for adding feedback
## Code Before:
from django.test import TestCase, client

from .models import Feedback


client = client.Client()


class FeedbackTest(TestCase):
    def test_add_feedback(self):
        before_add = Feedback.objects.count()
        response = client.post('/feedback/add/', {
            'name': 'Пандо Пандев',
            'email': 'panda@panda.com',
            'information': 'Тука се разхожда една панда по екрана'})
        after_add = Feedback.objects.count()
        self.assertEqual(response.status_code, 302)
        self.assertEqual(before_add + 1, after_add)

    def test_user_add_feedback(self):
        pass

## Instruction:
Remove test for adding feedback
## Code After:
from django.test import TestCase, client

from .models import Feedback


client = client.Client()


class FeedbackTest(TestCase):
    def test_add_feedback(self):
        pass
        # before_add = Feedback.objects.count()
        # response = client.post('/feedback/add/', {
        #     'name': 'Пандо Пандев',
        #     'email': 'panda@panda.com',
        #     'information': 'Тука се разхожда една панда по екрана'})
        # after_add = Feedback.objects.count()
        # self.assertEqual(response.status_code, 302)
        # self.assertEqual(before_add + 1, after_add)

    def test_user_add_feedback(self):
        pass
