Ajout des tests intermediatires

This commit is contained in:
Colin Goutte 2024-04-26 16:31:23 +02:00
parent 0a86e7e065
commit ce12923c8e
1 changed files with 10 additions and 0 deletions

View File

@ -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")