commit af8fb48efe58a1b2975973074c2e3b1bec37bfe3 Author: Colin Goutte Date: Fri Apr 26 15:53:45 2024 +0200 Ebauche tdd et makefile ok diff --git a/python_tableur/Makefile b/python_tableur/Makefile new file mode 100644 index 0000000..e12612c --- /dev/null +++ b/python_tableur/Makefile @@ -0,0 +1,5 @@ +test: + python -m unittest + +tdd: + ls | entr make test diff --git a/python_tableur/test_demo.py b/python_tableur/test_demo.py new file mode 100644 index 0000000..19c68b6 --- /dev/null +++ b/python_tableur/test_demo.py @@ -0,0 +1,8 @@ +from unittest import TestCase + +from code import database + + +class FetchFromSpradSheetCast(TestCase): + def test_sample_data(self): + self.assertEquals(database["Quad_premiers"]["d"], "2401")