@@ -287,12 +287,12 @@ def test_custom_links(self):
287
287
# secret_url = self.url + '/link/secret?next={}'.format(short_url.split('/')[-1])
288
288
# resp = sess.get(short_url)
289
289
# self.assertTrue(resp.url, secret_url)
290
- #
290
+
291
291
# headers = self.headers
292
292
# headers['Cookie'] = 'csrftoken={}'.format(resp.cookies['csrftoken'])
293
293
# import pdb
294
294
# pdb.set_trace()
295
- #
295
+
296
296
# resp = sess.post(self.url + '/link/secret', json={'code':short_url.split('/')[-1],'secret_key': data['secret_key'], 'csrfmiddlewaretoken': resp.cookies['csrftoken']}, headers=headers)
297
297
# self.assertEqual(resp.status_code, 200)
298
298
# self.assertTrue('value="{}"'.format(short_url) in response.text)
@@ -303,27 +303,27 @@ def test_custom_links(self):
303
303
# data['remember_time'] = 1 # 1 second
304
304
# response = requests.post(self.url + '/shorten', data=data, headers=self.headers)
305
305
# short_url = self._get_short_url_from_response(response)
306
- #
306
+
307
307
# self.assertEqual(requests.get(short_url).url, self.data['long_url'])
308
308
# self.assertEqual(response.status_code, 200)
309
309
# import time
310
310
# time.sleep(1)
311
311
# self.assertEqual(requests.get(short_url).status_code, 404)
312
312
313
- def test_custom_secret_links (self ):
314
- pass
313
+ # def test_custom_secret_links(self):
314
+ # pass
315
315
316
- def test_custom_expiry_links (self ):
317
- pass
316
+ # def test_custom_expiry_links(self):
317
+ # pass
318
318
319
- def test_secret_expiry_links (self ):
320
- pass
319
+ # def test_secret_expiry_links(self):
320
+ # pass
321
321
322
- def test_custom_secret_expiry_links (self ):
323
- pass
322
+ # def test_custom_secret_expiry_links(self):
323
+ # pass
324
324
325
- def test_invalid_char_custom_link (self ):
326
- pass
325
+ # def test_invalid_char_custom_link(self):
326
+ # pass
327
327
328
328
# ############
329
329
# # Link stats
0 commit comments