mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Unit Tests - Config
- Added unit tests for Config. Why didn't I do this a year ago? - Shut off old 1.7.0 code (gulp). - Task now thoroughly broken, and only 1.8.0 can help.
This commit is contained in:
parent
d702ba8f24
commit
7a219c999e
8 changed files with 121 additions and 49 deletions
|
@ -310,6 +310,7 @@ int main (int argc, char** argv)
|
|||
status = context.run ();
|
||||
|
||||
// start OBSOLETE
|
||||
/*
|
||||
TDB tdb;
|
||||
std::string dataLocation = expandPath (context.config.get ("data.location"));
|
||||
tdb.dataDirectory (dataLocation);
|
||||
|
@ -332,6 +333,8 @@ int main (int argc, char** argv)
|
|||
}
|
||||
|
||||
std::cout << runTaskCommand (context.args, tdb);
|
||||
*/
|
||||
// end OBSOLETE
|
||||
}
|
||||
|
||||
catch (std::string& error)
|
||||
|
@ -345,7 +348,6 @@ int main (int argc, char** argv)
|
|||
std::cerr << context.stringtable.get (100, "Unknown error.") << std::endl;
|
||||
return -2;
|
||||
}
|
||||
// end OBSOLETE
|
||||
|
||||
return status;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue