mirror of
https://github.com/nikdoof/tvorganise.git
synced 2025-12-20 21:39:23 +00:00
Added simple config parser test
This commit is contained in:
@@ -5,15 +5,31 @@ import tvorganise
|
|||||||
import unittest
|
import unittest
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
import tempfile
|
||||||
|
|
||||||
class testTvOrganise(unittest.TestCase):
|
class testTvOrganise(unittest.TestCase):
|
||||||
"""
|
"""
|
||||||
Test class for TvOrganise module
|
Test class for TvOrganise module
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def setUp(self):
|
def testConfigParser(self):
|
||||||
|
"""
|
||||||
|
Simple test to check to see if the config parser actually returns a
|
||||||
|
dict on completion
|
||||||
|
"""
|
||||||
|
dict = self.tvo._get_config('tvorganise.cfg')
|
||||||
|
self.assertTrue(dict)
|
||||||
|
|
||||||
|
def testConfigSettings(self):
|
||||||
|
"""
|
||||||
|
Using a predefined dict, save then load the config and validate
|
||||||
|
the contents
|
||||||
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
self.tvo = tvorganise.TvOrganiser()
|
||||||
|
|
||||||
|
|
||||||
class testFindFiles(unittest.TestCase):
|
class testFindFiles(unittest.TestCase):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user