@@ -287,12 +287,12 @@ def test_custom_links(self):
287287 # secret_url = self.url + '/link/secret?next={}'.format(short_url.split('/')[-1])
288288 # resp = sess.get(short_url)
289289 # self.assertTrue(resp.url, secret_url)
290- #
290+
291291 # headers = self.headers
292292 # headers['Cookie'] = 'csrftoken={}'.format(resp.cookies['csrftoken'])
293293 # import pdb
294294 # pdb.set_trace()
295- #
295+
296296 # resp = sess.post(self.url + '/link/secret', json={'code':short_url.split('/')[-1],'secret_key': data['secret_key'], 'csrfmiddlewaretoken': resp.cookies['csrftoken']}, headers=headers)
297297 # self.assertEqual(resp.status_code, 200)
298298 # self.assertTrue('value="{}"'.format(short_url) in response.text)
@@ -303,27 +303,27 @@ def test_custom_links(self):
303303 # data['remember_time'] = 1 # 1 second
304304 # response = requests.post(self.url + '/shorten', data=data, headers=self.headers)
305305 # short_url = self._get_short_url_from_response(response)
306- #
306+
307307 # self.assertEqual(requests.get(short_url).url, self.data['long_url'])
308308 # self.assertEqual(response.status_code, 200)
309309 # import time
310310 # time.sleep(1)
311311 # self.assertEqual(requests.get(short_url).status_code, 404)
312312
313- def test_custom_secret_links (self ):
314- pass
313+ # def test_custom_secret_links(self):
314+ # pass
315315
316- def test_custom_expiry_links (self ):
317- pass
316+ # def test_custom_expiry_links(self):
317+ # pass
318318
319- def test_secret_expiry_links (self ):
320- pass
319+ # def test_secret_expiry_links(self):
320+ # pass
321321
322- def test_custom_secret_expiry_links (self ):
323- pass
322+ # def test_custom_secret_expiry_links(self):
323+ # pass
324324
325- def test_invalid_char_custom_link (self ):
326- pass
325+ # def test_invalid_char_custom_link(self):
326+ # pass
327327
328328 # ############
329329 # # Link stats
0 commit comments