mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Tests: Updated basetest.py to use TIMEWARRIORDB
This commit is contained in:
parent
1eb93056f1
commit
79b8fcc83c
1 changed files with 3 additions and 3 deletions
|
@ -35,7 +35,7 @@ class Timew(object):
|
|||
# Configuration of the isolated environment
|
||||
self._original_pwd = os.getcwd()
|
||||
self.datadir = tempfile.mkdtemp(prefix="timew_")
|
||||
self.timewrc = os.path.join(self.datadir, "test.rc")
|
||||
self.timewrc = os.path.join (self.datadir, 'timewarrior.cfg')
|
||||
|
||||
# Ensure any instance is properly destroyed at session end
|
||||
atexit.register(lambda: self.destroy())
|
||||
|
@ -62,8 +62,8 @@ class Timew(object):
|
|||
# Copy all env variables to avoid clashing subprocess environments
|
||||
self.env = os.environ.copy()
|
||||
|
||||
# As well as TIMEWRC
|
||||
self.env["TIMEWRC"] = self.timewrc
|
||||
# As well as TIMEWARRIORDB
|
||||
self.env["TIMEWARRIORDB"] = self.datadir
|
||||
|
||||
def config(self, var, value):
|
||||
"""Run setup `var` as `value` in timew config
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue