Browse Source

[tests] nettoyage des db de test

Maxime Alves LIRMM@home 3 years ago
parent
commit
bd84e9e3c4
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      tests/conftest.py

+ 4
- 0
tests/conftest.py View File

@@ -25,6 +25,8 @@ def set_test_db():
25 25
 
26 26
     yield
27 27
 
28
+    os.unlink(tmpdb)
29
+
28 30
 
29 31
 @pytest.fixture(scope="module")
30 32
 def set_db_values():
@@ -32,7 +34,9 @@ def set_db_values():
32 34
     db_file = "./db/prod-b827ebbcab83-20201206.db"
33 35
     shutil.copy(db_file, tmpdb)
34 36
     config['heatpump']['database'] = tmpdb
37
+
35 38
     yield
39
+    os.unlink(tmpdb)
36 40
 
37 41
 
38 42
 @pytest.fixture

Loading…
Cancel
Save