Ajout des tests intermediatires
This commit is contained in:
parent
0a86e7e065
commit
ce12923c8e
|
@ -7,3 +7,13 @@ from excel2py import database
|
|||
class FetchFromSpradSheetCast(TestCase):
|
||||
def test_sample_data(self):
|
||||
self.assertEquals(database["Quad_premiers"]["d"], "2401")
|
||||
|
||||
def test_last_line_is_Quad_premier(self):
|
||||
self.assertIn("Quad_premier", excel2py.meslignes[-1])
|
||||
self.assertTrue("Quad_premiers" in excel2py.meslignes[-1])
|
||||
|
||||
def test_structure_simple_et_contenu(self):
|
||||
self.assertIn("Nom", excel2py.mes_donnees[-1])
|
||||
mon_echantillon = excel2py.mes_donnees[-1]
|
||||
self.assertEquals(mon_echantillon["Nom"], "Quad_premiers")
|
||||
self.assertEquals(mon_echantillon["d"], "2401")
|
||||
|
|
Loading…
Reference in New Issue