From af8fb48efe58a1b2975973074c2e3b1bec37bfe3 Mon Sep 17 00:00:00 2001 From: Colin Goutte Date: Fri, 26 Apr 2024 15:53:45 +0200 Subject: [PATCH] Ebauche tdd et makefile ok --- python_tableur/Makefile | 5 +++++ python_tableur/test_demo.py | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 python_tableur/Makefile create mode 100644 python_tableur/test_demo.py 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")