53 Commits

Author SHA1 Message Date
Tomas Babej
8074e509ba tests: Add bulk removal test for tags attribute 2021-11-22 15:51:27 +01:00
Tomas Babej
0bc92d6115 meta: Adjust copyright headers 2021-09-05 12:02:07 -04:00
Dustin J. Mitchell
20041c120e Refactor to store tags as individual attributes
Each tag is stored as `tag_<tagname>: x`.  The `x` is required because
empty attributes are treated as nonexistent.

For compatibility, the `tags` attribute is updated in sync with the
per-tag attributes.  This compatibility support may be dropped in later
versions.

Note that synchronization _updates_ use JSON format, which does not
change with this patch, and thus no compatibility issues exist.  The
synchronization _initialization_, however, uses FF4, meaning that a
sync server initialized from a version of `task` with this patch will
contain `tag_<tagname>` attributes, which will look like orphaned UDAs
to older versions.  However, as updates to tasks are synchronized via
the sync server, the updates will not contain these attributes and they
will show as "deleted" in the `task info` display on the older version.
Aside from the noise in the `task info` output, this is harmless.
2021-08-05 02:11:27 -04:00
Tomas Babej
9017cd6e53 doc: Update copyright to 2021 2021-01-02 02:48:22 -05:00
Max Rossmannek
f35989be0e Enforce Python 3 for unittests
This commit updates all tests to enforce the Python3 executable. This is
necessary because the `assertRegex` function we use was renamed to this
name only in Python 3.2 [1]

For reference:
s;/usr/bin/env python;/usr/bin/env python3;g

[1]: https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertRegex
2020-11-30 00:51:54 -05:00
Tomas Babej
a09f9d48ab Update copyright to 2020 2020-11-21 12:27:05 -05:00
Tomas Babej
7aac91f29f tests: due:yesterday does not match current year on 1st of January 2019-01-01 20:02:20 -05:00
Tomas Babej
675b8e2798 tests: Do not explicitly require Python 2.7 2019-01-01 14:53:44 -05:00
Tomas Babej
8066e4e6e2 meta: Update copyright year 2019-01-01 08:46:21 -05:00
Simon Ruderich
e817dfc800 Always use https:// link for opensource.org
It was already used in a few places, make this consistent.
2018-03-04 14:53:07 +01:00
Paul Beckingham
0de169bb10 Copyright 2018 2017-12-31 19:22:07 -05:00
Paul Beckingham
8113eae006 Tests: Added WAITING tests 2017-03-23 22:49:07 -04:00
Paul Beckingham
92ededda71 Tests: Added UNTIL tests 2017-03-23 22:48:58 -04:00
Paul Beckingham
322ff9e653 Tests: Added INSTANCE tests 2017-03-23 22:48:39 -04:00
Paul Beckingham
b0636bda2f Tests: Added TEMPLATE tests 2017-03-23 22:48:00 -04:00
Paul Beckingham
0de91e68c7 Tests: Added SCHEDULED tests 2017-03-23 22:47:40 -04:00
Paul Beckingham
79513ea17f Tests: Added READY tests 2017-03-23 22:47:16 -04:00
Paul Beckingham
a50e65a134 Copyright update 2017-01-01 12:30:04 -05:00
Paul Beckingham
f1951f83dc Test: Removed incorrect assumption about 'eow' relative to 'eoy' 2015-12-31 15:04:02 -05:00
Paul Beckingham
9690cad46a Test: Merged bug.818.t into tag.t 2015-10-23 08:20:03 -04:00
Paul Beckingham
5325efbd07 TW-1700: modify tags behavior changed
- Thanks to David Badura.
2015-09-21 07:28:26 -04:00
Tomas Babej
f5b9370623 tests: State explicit filetype for .t python files 2015-09-05 14:22:52 -04:00
Paul Beckingham
7d5fad721e Test: Removed another time-sensitive test 2015-08-02 10:13:37 -04:00
Paul Beckingham
3478d1f03b Test: Removed date-sensitive test
- Removed test that assumes 'due:yesterday' matches '+MONTH', which of course
  is not true for the 1st of the month.
2015-08-01 10:52:45 -04:00
Renato Alves
fe23510c51 Test: Drop default confirmation:off and correct tests accordingly 2015-07-28 19:57:18 +01:00
Paul Beckingham
f2fe397048 Test: Removed time-sensitive tests
- Removed assumptions that 'due:eow' matched +MONTH.
- Removed assumptions that 'due:eom' didn't match +WEEK.
2015-07-27 00:38:24 -04:00
Paul Beckingham
41a76c6798 Tags: New 'UDA' and 'ORPHAN' virtual tags. 2015-07-24 23:46:24 -04:00
Paul Beckingham
564a84d603 Test: Merged tw-285.t into tag.t 2015-07-24 17:38:15 -04:00
Paul Beckingham
09d7cdb7a9 Test: Merged list.all.tags.t into tag.t and converted to Python 2015-07-23 19:29:18 -04:00
Paul Beckingham
298c9b2dde Test: Converted to Python 2015-07-23 09:55:47 -04:00
Paul Beckingham
130f98175a Test: Added _tags tests 2015-07-18 15:21:14 -04:00
Paul Beckingham
7ddc715fbe Test: Added direct tag setting uniqueness test 2015-07-17 14:36:08 -04:00
Paul Beckingham
b7ad091d00 Updated copyright to 2015 2015-01-01 00:00:41 -05:00
Paul Beckingham
67d85b484b Unit Tests
- Removed diagnostic output that is no longer needed.
2014-06-15 22:22:02 -04:00
Paul Beckingham
4d4e740f5c Unit Tests
- Added ANNOTATED tests.
2014-06-07 09:45:58 -04:00
Paul Beckingham
c89e8eda0e Unit Tests
- Added first batch of virtual tag tests.
2014-06-07 09:05:32 -04:00
Paul Beckingham
f85ff7bde1 Unit Tests
- Removed useless setup/teardown tests, improving the signal to noise ratio.
2014-06-01 10:05:10 -04:00
Paul Beckingham
523dce8f32 Code Cleanup
- Standardized headers.
2014-02-01 14:33:37 -05:00
Paul Beckingham
8ed92ca498 Copyright
- Bumped copyright to 2014, ready for release.
2014-01-01 13:32:22 -05:00
Paul Beckingham
ada6e49dab Bug #1251
- #1251 tests should sanitize TASKDATA and TASKRC env vars (thanks to Jakub
  Wilk).
2013-09-07 13:52:16 -04:00
Paul Beckingham
8af0a7f3ba Merge branch 'master' into 2.3.0
Conflicts:
	AUTHORS
	CMakeLists.txt
	INSTALL
	NEWS
	cmake.h.in
	doc/man/task-faq.5.in
	package-config/osx/README
	scripts/utils/verify_l10n
	src/API.h
	src/Config.cpp
	src/Context.cpp
	src/DOM.cpp
	src/Hooks.cpp
	src/TransportShell.h
	src/commands/CmdDiagnostics.cpp
	src/commands/CmdShell.cpp
	src/commands/CmdVersion.cpp
	src/en-US.h
	src/shell/Readline.h
	src/wcwidth6.cpp
	test/CMakeLists.txt
	test/color.uda.t
	test/duration.t.cpp
	test/hook.on-launch.t
	test/template.t
	test/uuid.t
2013-04-07 17:56:59 -04:00
Paul Beckingham
1dccd29643 Copyright 2013
- Updated copyright notices.
2013-03-04 17:47:12 -05:00
Paul Beckingham
b1443e831b Unit Tests
- Removed mention of synch.key from all unit tests.  This is an obsolete file.
2012-10-01 23:56:09 -04:00
Owen Clarke
31769a1fa4 Portability
- Changed the interpreter of the test files to use /usr/bin/env to find
  perl in the user's path instead of hard-coding /usr/bin/perl
2012-07-30 18:49:50 +10:00
Paul Beckingham
da575c4043 Unit Tests
- Modified testing to accomodate new split between stdout/stderr.
2012-07-03 15:43:19 -04:00
Paul Beckingham
6580095002 Copyright
- Year change.
2012-01-02 23:32:10 -05:00
Paul Beckingham
44e7fdac4b Unit Tests
- Improved signal to noise ratio of all remaining unit tests.
2011-10-15 22:25:38 -04:00
Federico Hernandez
23e3bc56fb License
- perl unit tests
2011-10-08 16:57:13 +02:00
Paul Beckingham
49cabc1bfd Unit Tests
- All unit tests now clean up the new backlog.data and synch.key files.
2011-08-14 14:09:12 -04:00
Paul Beckingham
ac7bcc81ee Unit Tests
- Corrected all unit tests that used the old syntax "task done 1" to
  use the new syntax "task 1 done".  Similarly, "task 1 ..." is now
  "task 1 modify ...".
2011-07-31 19:03:19 -04:00