[tests] Fix imports for Python3 compatibility

This commit is contained in:
Tobi-wan Kenobi 2017-03-05 09:40:15 +01:00
parent 30f3c898ed
commit e4f728327e
6 changed files with 6 additions and 6 deletions

View file

@ -8,7 +8,7 @@ from bumblebee.engine import Engine
from bumblebee.config import Config from bumblebee.config import Config
import bumblebee.input import bumblebee.input
from mocks import MockOutput, MockInput from tests.mocks import MockOutput, MockInput
class TestEngine(unittest.TestCase): class TestEngine(unittest.TestCase):
def setUp(self): def setUp(self):

View file

@ -4,7 +4,7 @@ import json
import mock import mock
import unittest import unittest
import mocks import tests.mocks as mocks
from bumblebee.input import I3BarInput, LEFT_MOUSE, RIGHT_MOUSE from bumblebee.input import I3BarInput, LEFT_MOUSE, RIGHT_MOUSE

View file

@ -9,7 +9,7 @@ try:
except ImportError: except ImportError:
from io import StringIO from io import StringIO
import mocks import tests.mocks as mocks
from bumblebee.output import I3BarOutput from bumblebee.output import I3BarOutput

View file

@ -4,7 +4,7 @@ import unittest
from bumblebee.engine import Module from bumblebee.engine import Module
from bumblebee.config import Config from bumblebee.config import Config
from mocks import MockWidget from tests.mocks import MockWidget
class TestModule(unittest.TestCase): class TestModule(unittest.TestCase):
def setUp(self): def setUp(self):

View file

@ -4,7 +4,7 @@ import mock
import unittest import unittest
from bumblebee.theme import Theme from bumblebee.theme import Theme
from bumblebee.error import ThemeLoadError from bumblebee.error import ThemeLoadError
from mocks import MockWidget from tests.mocks import MockWidget
class TestTheme(unittest.TestCase): class TestTheme(unittest.TestCase):
def setUp(self): def setUp(self):

View file

@ -3,7 +3,7 @@
import mock import mock
import unittest import unittest
import mocks import tests.mocks as mocks
from bumblebee.util import * from bumblebee.util import *