mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-20 02:27:40 +03:00
First pass at getting test framework up and running.
This commit is contained in:
parent
ec3987ad17
commit
1f3de2474c
11
src/eddn/conf/tests/TestSettings.py
Normal file
11
src/eddn/conf/tests/TestSettings.py
Normal file
@ -0,0 +1,11 @@
|
||||
import os
|
||||
import unittest
|
||||
|
||||
|
||||
class TestSettings(unittest.TestCase):
|
||||
|
||||
def testLoadSettings(self):
|
||||
from eddn.conf.Settings import Settings
|
||||
self.assertEqual(Settings.RELAY_DECOMPRESS_MESSAGES, False)
|
||||
Settings.loadFrom(os.path.join(os.path.dirname(__file__), "testLoadSettings.json"))
|
||||
self.assertEqual(Settings.RELAY_DECOMPRESS_MESSAGES, True)
|
0
src/eddn/conf/tests/__init__.py
Normal file
0
src/eddn/conf/tests/__init__.py
Normal file
3
src/eddn/conf/tests/testLoadSettings.json
Normal file
3
src/eddn/conf/tests/testLoadSettings.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"RELAY_DECOMPRESS_MESSAGES" : true
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user