Resolved various warnings, upgrade bootstrap3

This commit is contained in:
Raphael Michel
2016-09-27 10:49:39 +02:00
parent 3e318d0dcf
commit efc6b6e480
9 changed files with 79 additions and 78 deletions

View File

@@ -6,12 +6,12 @@ class SoupTest(TestCase):
def get_doc(self, *args, **kwargs):
response = self.client.get(*args, **kwargs)
return BeautifulSoup(response.rendered_content)
return BeautifulSoup(response.rendered_content, "lxml")
def post_doc(self, *args, **kwargs):
kwargs['follow'] = True
response = self.client.post(*args, **kwargs)
return BeautifulSoup(response.rendered_content)
return BeautifulSoup(response.rendered_content, "lxml")
def extract_form_fields(soup):

View File

@@ -33,7 +33,7 @@ class CacheTest(TestCase):
def test_longkey(self):
self.cache.set(self.testkey * 100, "foo")
self.assertEquals(self.cache.get(self.testkey * 100), "foo")
self.assertEqual(self.cache.get(self.testkey * 100), "foo")
def test_invalidation(self):
self.cache.set(self.testkey, "foo")
@@ -46,4 +46,4 @@ class CacheTest(TestCase):
'b': 'bar',
}
self.cache.set_many(inp)
self.assertEquals(inp, self.cache.get_many(inp.keys()))
self.assertEqual(inp, self.cache.get_many(inp.keys()))