Procházet zdrojové kódy

Merge pull request #63 from cristen/tests

Fixes tests to use the default project root config
Guillaume Ayoub před 12 roky
rodič
revize
f5f31ca978
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      tests/__init__.py

+ 4 - 0
tests/__init__.py

@@ -33,6 +33,10 @@ from io import BytesIO
 sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
 
 import radicale
+
+os.environ["RADICALE_CONFIG"] = os.path.join(os.path.dirname(
+    os.path.dirname(__file__)), "config")
+
 from radicale import config
 from radicale.auth import htpasswd
 from radicale.storage import filesystem, database