Browse Source

Remove old tests

sqozz 1 year ago
parent
commit
f74aedc547
1 changed files with 0 additions and 36 deletions
  1. 0
    36
      schort_functional_tests.py

+ 0
- 36
schort_functional_tests.py View File

@@ -1,36 +0,0 @@
1
-#!/usr/bin/env python3
2
-import os
3
-import unittest
4
-import requests
5
-
6
-class SchortFunctionalTestCase(unittest.TestCase):
7
-	def setUp(self):
8
-		pass
9
-
10
-	def tearDown(self):
11
-		pass
12
-
13
-	def assertPostReq(self, url, data = {}):
14
-		req = requests.post(url, data=data)
15
-		self.assertEqual(req.status_code, 200)
16
-		return req
17
-
18
-	def test_entry_page(self):
19
-		req = requests.get("http://localhost:5000/")
20
-		self.assertEqual(req.status_code, 200)
21
-
22
-	def test_custom_creation(self):
23
-		req = requests.get("http://localhost:5000/")
24
-		self.assertEqual(req.status_code, 200)
25
-
26
-	def test_easy_api(self):
27
-		req = self.assertPostReq("http://localhost:5000/", data={"url" : "https://github.com/sqozz/schort"})
28
-
29
-
30
-
31
-
32
-
33
-if __name__ == '__main__':
34
-	unittest.main()
35
-
36
-# vim: noexpandtab:ts=2:sw=2:sts=2

Loading…
Cancel
Save