Thor77
80df2c02f0
Add testcase for logs with server/clientgroup-actions
2016-10-27 00:02:17 +02:00
Thor77
87f9bf43fc
rewrite config-tests to work with new return-value of tsstats.config.load
...
* bump version to 0.10.1
2016-08-06 21:39:36 +02:00
Thor77
892680fe4d
add onlinedc config-option
...
* inverse of --noonlinedc
2016-06-25 20:42:46 +02:00
Thor77
eafc98f548
add test for tsstats.log.parse_logs
2016-06-22 20:40:55 +02:00
Thor77
54532fd598
use _bundle_logs in template-tests for now
2016-06-21 18:25:38 +02:00
Thor77
468bfcd22d
fix log-tests by renaming all occurences of parse_log to _parse_details
...
* additionally remove deprecated test_multiple-test
2016-06-21 18:23:35 +02:00
Thor77
976d40e2b9
add test for tsstats.log._bundle_logs
2016-06-20 21:59:22 +02:00
Thor77
8abb0029fa
cover line not matching
2016-06-12 18:44:41 +02:00
Thor77
123370554a
use defined output_path in tsstats.tests.test_template.output-fixture and sort imports
2016-06-12 18:39:56 +02:00
Thor77
95c516a9f3
make tsstats.tests.test_template.test_online compatible with datetime.timedelta as Client.onlinetime
2016-06-12 18:36:09 +02:00
Thor77
2ed3b7f48d
make tsstats.tests.test_log compatible with datetime.timedelta as Client.onlinetime
2016-06-12 17:55:52 +02:00
Thor77
17d7552e8b
set parse_log(online_dc=False) in all log-tests
2016-06-12 16:58:17 +02:00
Thor77
a1c5f67c0c
extract path to testlog into variable
2016-06-12 16:39:41 +02:00
Thor77
3972594787
add testcase for #1
2016-06-12 16:38:28 +02:00
Thor77
fde3a921f9
refactor tsstats.tests.test_template.test_onlinetime
...
* check client-count in template
* take clients as base instead for comparisons
* dynamically check all included client-objects
TODO
====
* move nick_data-dict-generation into function or fixture
* split tsstats.client.Clients into id and uuid-clients to easily compare client- and template-data
2016-06-10 16:46:55 +02:00
Thor77
3e5c79fc05
add test for right identifier in debug-mode
2016-06-10 16:22:52 +02:00
Thor77
4ddc6bbf41
refactor tsstats.tests.test_template.test_data
...
* rename to test_onlinetime
* add soup-fixture (renders template + returns BeautifulSoup-instance)
2016-06-10 15:36:32 +02:00
Thor77
09ad45e9a6
cover tsstats.log.parse_logs
2016-05-25 20:06:17 +02:00
Thor77
53ffad3d81
refactor tsstats.log.parse_log(s)
...
* rename tsstats.log.parse_logs to tsstats.log.parse_log and remove glob-functionality
* create tsstats.log.parse_log to handle globbing
* fix tests to use tsstats.log.parse_log instead of tsstats.log.parse_logs
* bump version to 0.4.0
2016-05-23 21:50:10 +02:00
Thor77
c094edb6e9
refactor config.parse_config
...
* add debug-output
* return config-values as expected by __main__.main
* remove test_config_invalid
* fix tests
2016-05-21 23:14:52 +02:00
Thor77
abea9c0f89
remove test_general.py (testing __main__) to get clear coverage-results
2016-05-19 21:40:37 +02:00
Thor77
3112311f7e
move invalid-log-test from test_general.py to test_log.py
2016-05-19 21:37:12 +02:00
Thor77
3f2ccd3ac6
cover tsstats.client.Clients.__del__
2016-05-19 21:24:22 +02:00
Thor77
3729ecf9c0
add tests for Clients-getter
2016-05-19 15:47:04 +02:00
Thor77
d9f46e1b33
test refactored tsstats.client.Clients correctly in test_ident_map.py
2016-05-19 15:47:01 +02:00
Thor77
36790e3863
modify test_log_client_count to use tsstats.client.Clients.__len__
2016-05-19 15:41:19 +02:00
Thor77
a7cfa6967f
split client and parse-tests into test_client.py and test_log.py
2016-05-18 22:08:09 +02:00
Thor77
cbb44fcb85
[config] rename logfile to log and outputpath to output
2016-05-10 22:56:48 +02:00
Thor77
d836b807be
move logging-setup into __init__.py and use one central logger-object
2016-05-10 22:50:34 +02:00
Thor77
9891b1d785
use py.test instead of nose for testing
2016-05-09 20:09:16 +02:00
Thor77
6889946ab6
use py2-style ConfigParser-set and section_add in tests
2016-05-09 19:34:13 +02:00
Thor77
b3427ec785
make config-test py2-compatible
2016-05-08 21:42:28 +02:00
Thor77
a25a596d02
split tsstats.py into package with multiple files
2016-05-08 21:32:37 +02:00