Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
agkyra
Commits
3cf2e4d6
Commit
3cf2e4d6
authored
Jul 31, 2015
by
Giorgos Korfiatis
Browse files
Use osx compatible tmp path in tests
parent
a4ee098f
Changes
1
Hide whitespace changes
Inline
Side-by-side
test.py
View file @
3cf2e4d6
...
...
@@ -30,6 +30,7 @@ import shutil
import
unittest
import
mock
import
sqlite3
import
tempfile
from
functools
import
wraps
from
agkyra.config
import
AgkyraConfig
,
CONFIG_PATH
...
...
@@ -50,7 +51,7 @@ logger.setLevel(logging.INFO)
# kamakirecv_logger.addHandler(handler)
# kamakirecv_logger.setLevel(logging.DEBUG)
TMP
=
"/tmp"
TMP
=
os
.
path
.
realpath
(
tempfile
.
gettempdir
())
def
hash_file
(
fil
):
...
...
@@ -89,7 +90,7 @@ class AgkyraTest(unittest.TestCase):
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
(
auth_url
=
AUTHENTICATION_URL
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment