Commit Graph

30 Commits

Author SHA1 Message Date
Thor77 4c872930db
Update pendulum to 2.1.2 2023-01-14 19:02:53 +01:00
Matthew c34f2d4d8b Improve navbar on mobile devices (#16)
* add button to show/hide menu items
* ensure navigation fills the width of the viewport by moving it out of the main container element
2019-03-10 13:06:28 +01:00
Thor77 3207c0070c Don't rely on style-attr for debug-label presence 2019-03-10 13:06:28 +01:00
Thor77 ab68f57f83 Use timestamp for relative timestamp human test 2018-01-10 20:33:52 +01:00
Thor77 7fd4297c4d Adapt tests to Clients.__iter__ returning keys 2017-09-25 23:21:12 +02:00
Thor77 c9ab6f6b97 Add encoding-header to missing files 2017-09-16 22:31:15 +02:00
Thor77 c8092018f2 Revert "Sort imports"
because the sorting-order is dependent on installed packages

This reverts commit 51191672c6.
2017-09-16 22:03:55 +02:00
Thor77 51191672c6 Sort imports 2017-09-16 21:59:44 +02:00
Thor77 8558d731d4 Add test for render_servers.lastseen_relative 2017-09-14 23:09:50 +02:00
Thor77 147c41ffce Use parse_logs instead of _parse_details
because _parse_details is not available anymore
2017-09-09 17:35:55 +02:00
Thor77 65a8379261 Use pendulum instead of plain datetime
because it is more intuitive to use and doesn't require the
tz_aware_datetime-workaround.
2017-07-07 14:22:24 +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 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 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 d522ce648a Add testcase for tsstats.utils.filter_threshold 2016-11-11 18:41:51 +01:00
Thor77 54532fd598 use _bundle_logs in template-tests for now 2016-06-21 18:25:38 +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 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 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 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 a25a596d02 split tsstats.py into package with multiple files 2016-05-08 21:32:37 +02:00