diff --git a/tests/test_general.py b/tests/test_general.py index 8ea7cbd..24cecf3 100644 --- a/tests/test_general.py +++ b/tests/test_general.py @@ -1,4 +1,4 @@ -from tsstats import parse_logs, main +from tsstats import parse_logs, main, exceptions from os import remove from nose.tools import raises @@ -9,6 +9,15 @@ def test_main(): main(config_path='tests/res/config.ini') +@raises(exceptions.ConfigNotFound) +def test_main_config_not_found(): + main() + + +def test_main_idmap_load(): + main(config_path='tests/res/config.ini', id_map_path='tests/res/id_map.json') + + def test_length(): assert len(clients.clients_by_id) == 2 assert len(clients.clients_by_uid) == 1