Commit graph

46 commits

Author SHA1 Message Date
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
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
a50e65a134 Copyright update 2017-01-01 12:30:04 -05:00
Paul Beckingham
d8bf209f29 Tests: Updated to non-deprecated Boolean values 2016-09-04 16:13:23 -04:00
Paul Beckingham
641d232dea Copyright: Updated to 2016 2015-12-31 15:06:43 -05:00
Paul Beckingham
ab025b27ff Test: Added UUID urgency test 2015-10-28 13:55:37 -04:00
Paul Beckingham
8adfe7fa20 Test: Merged bug.837.t into urgency.t 2015-10-23 08:25:52 -04:00
Tomas Babej
f5b9370623 tests: State explicit filetype for .t python files 2015-09-05 14:22:52 -04:00
Tomas Babej
6b83945a21 Urgency: Replace 'next' coefficient with configuration entry 2015-09-04 08:10:36 -04:00
Paul Beckingham
00512d94cf Test: Added _urgency command error tests 2015-07-19 21:02:41 -04:00
Paul Beckingham
0dc64a7ec2 Test: Converted to Python 2015-07-05 20:57:53 -04:00
Paul Beckingham
d98b6e5c0b Tests: Converted priority urgency coefficients to UDAs 2015-04-05 14:58:07 -04:00
Paul Beckingham
b7ad091d00 Updated copyright to 2015 2015-01-01 00:00:41 -05:00
Paul Beckingham
ce797c1e6e Unit Tests
- Upgraded to the new template.
2014-09-08 01:52:43 -04:00
Paul Beckingham
fe549094e3 Task
- Added 'modified' attribute in ::validate, if not already present. This is not
  strictly necessary, but it is good to be explicit.
2014-09-07 23:24:07 -04:00
Paul Beckingham
24e2f24301 Unit Tests
- Corrected urgency unit tests that had been disabled and had rotted.
2014-06-10 15:53:05 -04:00
Paul Beckingham
43d953094b Unit Tests
- Corrected test count, which was artificially low, hiding some failing tests.
2014-06-09 20:47:19 -04:00
Paul Beckingham
310cafcc7d Unit Tests
- Enabled all urgency unit tests, even though many fail. Time to fix them.
2014-06-09 19:43:46 -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
ebaf09cbe0 Enhancement
- The 'due' urgency component is now calculated at a higher resolution.
2013-05-04 07:36:53 -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
a7b20b7a4e Unit Tests
- Fixed some tests so they no longer fail at EOM, by using "30d" to project into
  the future, instead of just "eom".
- The count.t test script has 4 tests still failing at EOM, but warnings are now
  emitted until we figure out how to improve them.
- Added a test to bug.1110.t.
2012-12-31 10:07:48 -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
Louis-Claude Canon
0ac6578899 Enhancement
- When formating real numbers that are between 0 and 1, the width controls the
  number of characters that are shown (with width "4", "0.01234" is shown as
  "0.01").
2012-07-27 08:19:21 -04: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
98f215b1b5 Feature: scheduled date
- Supports 'scheduled' date for tasks, which represent the earliest opportunity
  to work on a task.
- Added unit tests for urgency.
- Implemented color rule.
- Added scheduled to 'info' report.
- Updated assorted documentation.
- Removed comments in default rc because they are never seen.
- Added (broken) 'ready' report, which is like 'next' but only for ready tasks.
2012-05-13 17:19:22 -04:00
Paul Beckingham
5feb736939 Bug
- Fixed problem where urgency was not properly calculated for waiting tasks.
- Tweaked urgency coefficients to make most of the values closer together, and
  therefore more sensitive.
- Inverted 'waiting' coefficient.
- Boosted 'next', 'due' and 'blocking' coefficients.
- Modified unit tests accordingly.
- Lessened the impact of 'blocked', 'project', 'tags' and 'age'.
2012-02-26 23:13:15 -05: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
be0522d567 Annotation Collisions
- Annotation timestamps are now incremented until unique.  This prevents
  rapid, successive annotations colliding.  The kind that occur during
  unit tests and when using UI wrapper programs.
- Removed 'sleep' commands in unit tests that were added to circumvent
  this.  This speeds up the test suite somewhat.
2011-08-13 21:53:10 -04:00
Paul Beckingham
30034f057b Bug - A3::extract_modifications
- Broadened the list of argument categories that are downgraded to
  'word' for the purpose of task modification.
2011-08-13 16:24:07 -04:00
Paul Beckingham
f1525df48a Urgency
- Corrected unit tests for urgency.
- Modified default 'blocked' coefficient to be negative, to compensate
  for the bug fix for #707 that inverted the test.
2011-04-10 20:40:29 -04:00
Paul Beckingham
462caf5bd4 Copyright
- Updated copyright to 2011.
2010-12-31 22:03:05 -05:00
Federico Hernandez
5d775fdc3e Cmake:
- adapted makefile and unit tests to new place of test dir
2010-12-28 21:38:03 +01:00
Federico Hernandez
17ef077e27 Moved src/tests to test (cmake preperations) 2010-12-28 21:17:23 +01:00
Renamed from src/tests/urgency.t (Browse further)