Commit 3cf2e4d6 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

Use osx compatible tmp path in tests

parent a4ee098f
...@@ -30,6 +30,7 @@ import shutil ...@@ -30,6 +30,7 @@ import shutil
import unittest import unittest
import mock import mock
import sqlite3 import sqlite3
import tempfile
from functools import wraps from functools import wraps
from agkyra.config import AgkyraConfig, CONFIG_PATH from agkyra.config import AgkyraConfig, CONFIG_PATH
...@@ -50,7 +51,7 @@ logger.setLevel(logging.INFO) ...@@ -50,7 +51,7 @@ logger.setLevel(logging.INFO)
# kamakirecv_logger.addHandler(handler) # kamakirecv_logger.addHandler(handler)
# kamakirecv_logger.setLevel(logging.DEBUG) # kamakirecv_logger.setLevel(logging.DEBUG)
TMP = "/tmp" TMP = os.path.realpath(tempfile.gettempdir())
def hash_file(fil): def hash_file(fil):
...@@ -89,7 +90,7 @@ class AgkyraTest(unittest.TestCase): ...@@ -89,7 +90,7 @@ class AgkyraTest(unittest.TestCase):
cls.ID = "ΑΓΚΥΡΑTEST" + str(random.random()).split('.')[1] cls.ID = "ΑΓΚΥΡΑTEST" + str(random.random()).split('.')[1]
cls.LOCAL_ROOT_PATH = utils.join_path("/tmp", cls.ID) cls.LOCAL_ROOT_PATH = utils.join_path(TMP, cls.ID)
cls.settings = SyncerSettings( cls.settings = SyncerSettings(
auth_url=AUTHENTICATION_URL, auth_url=AUTHENTICATION_URL,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment