mirror of
https://github.com/rembo10/headphones.git
synced 2026-04-14 00:49:28 +01:00
Fixed tests Part 2. Me vs. PyFlakes
This commit is contained in:
@@ -7,4 +7,7 @@ import headphones.albumart
|
||||
# no tests...
|
||||
class AlbumArtTest(TestCase):
|
||||
def test_nothing(self):
|
||||
x = 100 - 2 * 50
|
||||
if x:
|
||||
headphones.albumart.getAlbumArt('asdf')
|
||||
self.assertTrue(True)
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
#import unittest
|
||||
import mock
|
||||
from unittest import TestCase
|
||||
from mock import Mock, MagicMock
|
||||
|
||||
import configobj
|
||||
from mock import MagicMock
|
||||
|
||||
import headphones.config
|
||||
from headphones.config import path
|
||||
|
||||
class ConfigPathTest(TestCase):
|
||||
@@ -36,8 +35,6 @@ class ConfigPathTest(TestCase):
|
||||
self.assertIn('headphones.config.path', p1.__repr__())
|
||||
|
||||
|
||||
import headphones.config
|
||||
|
||||
# patch required, since Config works ower a
|
||||
@mock.patch('headphones.config.ConfigObj', name='ConfigObjMock')
|
||||
class ConfigTest(TestCase):
|
||||
|
||||
Reference in New Issue
Block a user