mirror of
https://github.com/fergalmoran/picard.git
synced 2025-12-27 03:37:33 +00:00
Fix test_script.py
This commit is contained in:
@@ -1,9 +1,18 @@
|
||||
import unittest
|
||||
from PyQt4 import QtCore
|
||||
from picard.script import ScriptParser
|
||||
|
||||
class MiscModelTest(unittest.TestCase):
|
||||
class FakeConfig():
|
||||
def __init__(self):
|
||||
self.setting = {
|
||||
'enabled_plugins': '',
|
||||
}
|
||||
|
||||
|
||||
class ScriptParserTest(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
QtCore.QObject.config = FakeConfig()
|
||||
self.parser = ScriptParser()
|
||||
|
||||
def test_cmd_noop(self):
|
||||
@@ -105,6 +114,7 @@ class MiscModelTest(unittest.TestCase):
|
||||
class TagzParserTest(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
QtCore.QObject.config = FakeConfig()
|
||||
self.parser = ScriptParser()
|
||||
|
||||
def test_arguments(self):
|
||||
|
||||
Reference in New Issue
Block a user