Thor77
c86af0bed3
Replace datetime/timedelta with pendulum in tests
2017-06-02 23:37:34 +02:00
Thor77
a781382a39
Use pendulum's mocking for test_log_client_online
2017-06-02 23:37:34 +02:00
Thor77
11acf9f9b6
Add space between identifier and nick
...
mainly used in debug mode
2017-05-15 22:50:05 +02:00
Thor77
8299c73eb9
Move output-fixture to confest.py and yield path
...
* Modify test_log and test_template to use these changes
2017-04-28 23:27:05 +02:00
Thor77
683f9b984a
Add testcase for wrong identifier with identmap
...
If a client connects with a secondary identifier first,
this one is used as the identifier for the Client-object instead of the
primary one.
2017-03-29 12:45:35 +02:00
Thor77
aaf5f2b851
Convert filter to list
...
because filters are (non-subscriptable) objects in py3
2017-03-04 00:02:41 +01:00
Thor77
a694a2bc58
Refactor test_onlinetime
...
to require only one iteration and simplify testing
2017-03-03 23:59:24 +01:00
Thor77
2753f548fe
Test disconnect on server-stop
2017-02-23 21:51:42 +01:00
Thor77
962fd486af
Test reading config from disk again
2017-02-23 21:38:59 +01:00
Thor77
709c573b65
Refactor config-tests
...
by just testing the return-value of tsstats.config.load instead of
writing and reading a config-file from disk as there's absolutely no
need to test that as it's just basic ConfigParser-functionality
2017-02-22 22:00:09 +01:00
Thor77
5e19e38965
Fix E501 (line too long)
2017-02-19 17:17:14 +01:00
Matthew
5968dc31dd
Support for a nicer structure for ID maps ( #12 )
...
This adds support for a more expressive (albeit more verbose) IdentMap
structure. It makes it easier to annotate the structure with additional
data (such as names to associate with the IDs), to assist with
maintaining the IdentMap.
2017-02-18 14:58:23 +01:00
Thor77
72c1eb78f8
Use fixture for providing clients
...
for test_client and test_ident_map
2017-02-12 21:38:29 +01:00
Thor77
17a486bb7d
Fix incorrectly sorted imports
2016-11-23 21:19:21 +01:00
Thor77
ef66b45e21
Prefix clientlist-filter with section-filter
...
because navbar-entries are also li
2016-11-23 21:06:55 +01:00
Thor77
2cdcdd1e5b
Use new, sid-prefixed section-id
2016-11-23 21:06:11 +01:00
Thor77
a96200dafa
Update test_debug for new debug-label
2016-11-23 21:04:51 +01:00
Thor77
a3d4cdde5b
Use render_servers instead of render_template
2016-11-23 21:02:05 +01:00
Thor77
418be10603
Use render_servers for utf8-write-test
2016-11-22 23:08:49 +01:00
Thor77
75c5ebb575
Adapt to new return type of tsstats.log.parse_logs
...
in this case using list- instead of dict-indexing
2016-11-19 22:28:34 +01:00
Thor77
d522ce648a
Add testcase for tsstats.utils.filter_threshold
2016-11-11 18:41:51 +01:00
Thor77
1ec0a37480
Add testcase for #3 (encoding issues)
2016-11-07 20:24:08 +01:00
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