Removed the list_transactions view that is not used now.

This commit is contained in:
2023-03-09 06:56:04 +08:00
parent 531e90e8ad
commit f59378002e
4 changed files with 0 additions and 204 deletions

View File

@ -84,9 +84,6 @@ class CashIncomeTransactionTestCase(unittest.TestCase):
update_form["csrf_token"] = csrf_token
response: httpx.Response
response = client.get(PREFIX)
self.assertEqual(response.status_code, 403)
response = client.get(f"{PREFIX}/{txn_id}")
self.assertEqual(response.status_code, 403)
@ -119,9 +116,6 @@ class CashIncomeTransactionTestCase(unittest.TestCase):
update_form["csrf_token"] = csrf_token
response: httpx.Response
response = client.get(PREFIX)
self.assertEqual(response.status_code, 200)
response = client.get(f"{PREFIX}/{txn_id}")
self.assertEqual(response.status_code, 200)
@ -151,9 +145,6 @@ class CashIncomeTransactionTestCase(unittest.TestCase):
update_form: dict[str, str] = self.__get_update_form(txn_id)
response: httpx.Response
response = self.client.get(PREFIX)
self.assertEqual(response.status_code, 200)
response = self.client.get(f"{PREFIX}/{txn_id}")
self.assertEqual(response.status_code, 200)
@ -645,9 +636,6 @@ class CashExpenseTransactionTestCase(unittest.TestCase):
update_form["csrf_token"] = csrf_token
response: httpx.Response
response = client.get(PREFIX)
self.assertEqual(response.status_code, 403)
response = client.get(f"{PREFIX}/{txn_id}")
self.assertEqual(response.status_code, 403)
@ -680,9 +668,6 @@ class CashExpenseTransactionTestCase(unittest.TestCase):
update_form["csrf_token"] = csrf_token
response: httpx.Response
response = client.get(PREFIX)
self.assertEqual(response.status_code, 200)
response = client.get(f"{PREFIX}/{txn_id}")
self.assertEqual(response.status_code, 200)
@ -712,9 +697,6 @@ class CashExpenseTransactionTestCase(unittest.TestCase):
update_form: dict[str, str] = self.__get_update_form(txn_id)
response: httpx.Response
response = self.client.get(PREFIX)
self.assertEqual(response.status_code, 200)
response = self.client.get(f"{PREFIX}/{txn_id}")
self.assertEqual(response.status_code, 200)
@ -1213,9 +1195,6 @@ class TransferTransactionTestCase(unittest.TestCase):
update_form["csrf_token"] = csrf_token
response: httpx.Response
response = client.get(PREFIX)
self.assertEqual(response.status_code, 403)
response = client.get(f"{PREFIX}/{txn_id}")
self.assertEqual(response.status_code, 403)
@ -1248,9 +1227,6 @@ class TransferTransactionTestCase(unittest.TestCase):
update_form["csrf_token"] = csrf_token
response: httpx.Response
response = client.get(PREFIX)
self.assertEqual(response.status_code, 200)
response = client.get(f"{PREFIX}/{txn_id}")
self.assertEqual(response.status_code, 200)
@ -1280,9 +1256,6 @@ class TransferTransactionTestCase(unittest.TestCase):
update_form: dict[str, str] = self.__get_update_form(txn_id)
response: httpx.Response
response = self.client.get(PREFIX)
self.assertEqual(response.status_code, 200)
response = self.client.get(f"{PREFIX}/{txn_id}")
self.assertEqual(response.status_code, 200)