From 88617b8a466f2eb3c9d9ba6727929966ba779cc7 Mon Sep 17 00:00:00 2001 From: "rolf.dergham" Date: Thu, 27 Sep 2018 09:05:13 +0300 Subject: [PATCH] Compatibility: run tests on Windows --- tests/test_graph.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_graph.py b/tests/test_graph.py index 23d147c..6b3a418 100644 --- a/tests/test_graph.py +++ b/tests/test_graph.py @@ -6,6 +6,8 @@ Basic unittest for graph """ import unittest +import tempfile +import os from catcli.catcli import * from catcli.noder import Noder @@ -19,7 +21,7 @@ class TestGraph(unittest.TestCase): def test_graph(self): # init path = 'fake' - gpath = '/tmp/graph.dot' + gpath = tempfile.gettempdir() + os.sep + 'graph.dot' self.addCleanup(clean, path) self.addCleanup(clean, gpath) catalog = Catalog(path, force=True, verbose=False)