mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-21 07:43:08 +02:00
Unit Tests
- Added a default 'hooks=off' to the basetest class, after it was discovered that the scan for runnable hooks takes non-trivial time.
This commit is contained in:
parent
61bed34a19
commit
071cf55c00
2 changed files with 3 additions and 1 deletions
|
@ -136,6 +136,7 @@ void Eval::evaluateInfixExpression (const std::string& e, Variant& v) const
|
||||||
// Parse for syntax checking and operator replacement.
|
// Parse for syntax checking and operator replacement.
|
||||||
if (_debug)
|
if (_debug)
|
||||||
context.debug ("[1;37;42mFILTER[0m Infix " + dump (tokens));
|
context.debug ("[1;37;42mFILTER[0m Infix " + dump (tokens));
|
||||||
|
|
||||||
infixParse (tokens);
|
infixParse (tokens);
|
||||||
if (_debug)
|
if (_debug)
|
||||||
context.debug ("[1;37;42mFILTER[0m Infix parsed " + dump (tokens));
|
context.debug ("[1;37;42mFILTER[0m Infix parsed " + dump (tokens));
|
||||||
|
|
|
@ -48,7 +48,8 @@ class Task(object):
|
||||||
# Cannot call self.config until confirmation is disabled
|
# Cannot call self.config until confirmation is disabled
|
||||||
with open(self.taskrc, 'w') as rc:
|
with open(self.taskrc, 'w') as rc:
|
||||||
rc.write("data.location={0}\n"
|
rc.write("data.location={0}\n"
|
||||||
"confirmation=no\n".format(self.datadir))
|
"confirmation=no\n"
|
||||||
|
"hooks=off\n".format(self.datadir))
|
||||||
|
|
||||||
# Setup configuration to talk to taskd automatically
|
# Setup configuration to talk to taskd automatically
|
||||||
if self.taskd is not None:
|
if self.taskd is not None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue