From abea9c0f899e667c7e461a2731fa1b3944ff89ca Mon Sep 17 00:00:00 2001
From: Thor77 <xXThor77Xx@gmail.com>
Date: Thu, 19 May 2016 21:38:17 +0200
Subject: [PATCH] remove test_general.py (testing __main__) to get clear
 coverage-results

---
 .coveragerc                   |  4 +++-
 tsstats/tests/test_general.py | 42 -----------------------------------
 2 files changed, 3 insertions(+), 43 deletions(-)
 delete mode 100644 tsstats/tests/test_general.py

diff --git a/.coveragerc b/.coveragerc
index 257f05b..9dffea1 100644
--- a/.coveragerc
+++ b/.coveragerc
@@ -5,4 +5,6 @@ exclude_lines =
     def cli
 
 [run]
-omit = tsstats/tests/*
+omit =
+  tsstats/tests/*
+  tsstats/__main__.py
diff --git a/tsstats/tests/test_general.py b/tsstats/tests/test_general.py
deleted file mode 100644
index 671d2fa..0000000
--- a/tsstats/tests/test_general.py
+++ /dev/null
@@ -1,42 +0,0 @@
-import logging
-from os import remove
-
-import pytest
-
-from tsstats import exceptions
-from tsstats.__main__ import main
-from tsstats.log import parse_logs
-
-clients = parse_logs('tsstats/tests/res/test.log')
-
-
-logger = logging.getLogger('tsstats')
-
-
-@pytest.fixture
-def output(request):
-    def clean():
-        remove('tsstats/tests/res/output.html')
-    request.addfinalizer(clean)
-
-
-def test_main(output):
-    main(config_path='tsstats/tests/res/config.ini')
-
-
-def test_main_config_not_found():
-    with pytest.raises(exceptions.ConfigNotFound):
-        main(config_path='/some/where/no/conf.ini')
-
-
-def test_main_idmap_load(output):
-    main(config_path='tsstats/tests/res/config.ini',
-         id_map_path='tsstats/tests/res/id_map.json')
-
-
-def test_debug_log():
-    logger.setLevel(logging.DEBUG)
-    parse_logs('tsstats/tests/res/test.log')
-    logger.setLevel(logging.INFO)
-    open('debug.txt')
-    remove('debug.txt')