1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
Description: Fixed importing module for tests
Author: Kouhei Maeda
Last-Update: 2014-09-04
Index: tomahawk-0.7.1/tests/internal/test_command.py
===================================================================
--- tomahawk-0.7.1.orig/tests/internal/test_command.py 2014-09-04 10:24:38.031670929 +0900
+++ tomahawk-0.7.1/tests/internal/test_command.py 2014-09-04 10:24:38.027670781 +0900
@@ -1,7 +1,7 @@
import argparse
import datetime
import re
-import utils
+from tests.internal import utils
utils.append_home_to_path(__file__)
Index: tomahawk-0.7.1/tests/internal/test_expect.py
===================================================================
--- tomahawk-0.7.1.orig/tests/internal/test_expect.py 2014-09-04 10:24:38.031670929 +0900
+++ tomahawk-0.7.1/tests/internal/test_expect.py 2014-09-04 10:24:38.027670781 +0900
@@ -3,7 +3,7 @@
from flexmock import flexmock
import pexpect
import pytest
-import utils
+from tests.internal import utils
utils.append_home_to_path(__file__)
from tomahawk.expect import CommandWithExpect
Index: tomahawk-0.7.1/tests/internal/test_rsync.py
===================================================================
--- tomahawk-0.7.1.orig/tests/internal/test_rsync.py 2014-09-04 10:24:38.031670929 +0900
+++ tomahawk-0.7.1/tests/internal/test_rsync.py 2014-09-04 10:24:38.027670781 +0900
@@ -2,7 +2,7 @@
import os
import re
import shutil
-import utils
+from tests.internal import utils
utils.append_home_to_path(__file__)
Index: tomahawk-0.7.1/tests/internal/test_utils.py
===================================================================
--- tomahawk-0.7.1.orig/tests/internal/test_utils.py 2014-09-04 10:24:23.131117857 +0900
+++ tomahawk-0.7.1/tests/internal/test_utils.py 2014-09-04 10:24:56.372351791 +0900
@@ -1,6 +1,6 @@
from six import print_
import os
-import utils
+from tests.internal import utils
utils.append_home_to_path(__file__)
from tomahawk.utils import (
|