Commit graph

37 commits

Author SHA1 Message Date
Thomas Lauf
81225722aa Remove stuff for Python < 3.7
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-04-17 08:17:29 +02:00
Thomas Lauf
a1d418a686 Fix grammar and spelling
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-04-17 08:17:29 +02:00
Thomas Lauf
082708a7ca Fix typos and wording
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-04-04 22:44:44 +02:00
Thomas Lauf
598ddb24c8 Fix typo
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2022-09-27 23:33:43 +02:00
Thomas Lauf
8103d49e52 Use double quotes
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2022-09-27 23:33:43 +02:00
Thomas Lauf
d256580c4e Fix typos
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2022-08-17 21:23:43 +02:00
Shaun Ruffell
ce021a87e3 test: Thread.isAlive() -> Thread.is_alive()
Python added Thread.is_alive() in 2.6 and removed Thread.isAlive() in
3.9.

This change is needed to run the tests with Python 3.9.

https://bugs.python.org/issue37804
Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
2020-11-21 15:34:04 +01:00
Thomas Lauf
41c50e009c Add test for export with tag filter
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-03-06 16:13:00 +01:00
Thomas Lauf
6b75a5f92d Set bufsize to '-1' so we use io.DEFAULT_BUFFER_SIZE
- Removes RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-02-23 19:26:29 +01:00
Thomas Lauf
72f13b859f Remove obsolete code
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-02-23 19:03:54 +01:00
Thomas Lauf
cb7240fe1a Linebreak after <"""> in multiline doc-comments
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-02-23 19:03:54 +01:00
Thomas Lauf
457e73f772 Remove unnecessary input
- ":yes" hint already takes care of that

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-02-23 19:03:54 +01:00
Thomas Lauf
bb73c293ef Remove line breaks
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-02-23 19:03:54 +01:00
Thomas Lauf
09a77eddb3 Mark byte literals
- #259

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-12-11 10:20:33 +01:00
Thomas Lauf
c27344525b Remove compat.py
- There is only one string type in python3
- #259

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-12-11 10:20:33 +01:00
Thomas Lauf
c7e044373f Replace assertItemsEqual with assertSequenceEqual
- Add sorting for both lists
- #259

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-12-11 10:20:33 +01:00
Thomas Lauf
7fa7ca5f04 Remove vim annotations
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-12-11 10:20:33 +01:00
Shaun Ruffell
f0bda68b02 Allow help.t test to find manpages without installing them. 2019-11-19 19:45:18 +01:00
Thomas Lauf
6d09d8fe13 Add quotes around expected/actual string in assertion message
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-08-22 22:33:58 +02:00
Thomas Lauf
0e43feed3c Add tests for 'timew annotate' 2018-10-10 20:42:01 +02:00
Thomas Lauf
15bb111171 Refactor configure_exclusions 2018-08-10 17:08:20 +02:00
Thomas Lauf
7fefdf80bd Use assertItemsEqual to compare tags 2018-08-10 17:08:20 +02:00
Thomas Lauf
14b655c6e8 Improve export.t
- Use interval asserts
- Use UTC time
- Extract configure_exclusions method
2018-08-10 17:08:20 +02:00
Thomas Lauf
b0193b3683 #9 TI-1: Clean-up
- Remove unused variables
- add empty line for PEP8 conformity
2018-07-24 18:51:00 +02:00
Thomas Lauf
9d29a14d64 #9 TI-1: Add testsuite
- Simple test for each undoable interval command
- Refactored assertions
2018-07-23 22:15:01 +02:00
Thomas Lauf
10dfa64cfa #21 Add implicit @1 to command 'untag'
- Extend interval assertions
- Add interval assertions to tests for command 'tag'
- Add interval assertions to tests for command 'untag'
2018-05-13 17:56:55 +02:00
Thomas Lauf
ca7951cace Add dedicated assertion for intervals 2018-05-04 18:05:22 +02:00
Thomas Lauf
9c97c4a1ce TI-94 #98 Added test 2018-03-20 22:56:40 +01:00
Thomas Lauf
81a7bba721 fix pydoc, coding style, optimize imports 2018-03-11 21:45:16 +01:00
Thomas Lauf
e9412388ba Tests: Fix python doc strings 2017-03-25 15:36:16 +01:00
Sergey Trofimov
7a4aef50be Tests: check ways report could be called from cli 2016-06-23 17:21:13 -04:00
Paul Beckingham
5ed0981580 Tests: Updated frmaework to override confirmation 2016-05-05 21:14:07 -04:00
Paul Beckingham
b92ab761af Tests: Fixed the config test framework for timew 2016-05-05 19:54:02 -04:00
Paul Beckingham
c64e566a4b Tests: Modified 'export' function from Taskwarrior 2016-05-02 17:11:47 -04:00
Paul Beckingham
60a015f945 Tests: Removed hooks code 2016-04-28 22:34:58 -04:00
Paul Beckingham
79b8fcc83c Tests: Updated basetest.py to use TIMEWARRIORDB 2016-03-26 21:19:40 -04:00
Paul Beckingham
84e2579e03 Tests: Inherited basetest class from Taskwarrior 2016-03-01 00:21:22 -05:00