Skip to content

Commit

Permalink
test_config.py: Test TASKDATA is not set, rather than setting it empty
Browse files Browse the repository at this point in the history
We now consider an empty-string TASKDATA to be a misconfiguration. See
GH GothenburgBitFactory#534 for discussion.
  • Loading branch information
pjf authored and ryneeverett committed Apr 18, 2018
1 parent 1fbdc7c commit fe5da90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def test_taskrc_datalocation(self):
"""
When TASKDATA is not set, data.location in taskrc should be respected.
"""
os.environ['TASKDATA'] = ''
self.assertTrue('TASKDATA' not in os.environ)
self.assertDataPath(self.lists_path)

def test_unassigned(self):
Expand All @@ -107,7 +107,7 @@ def test_unassigned(self):
with open(self.taskrc, 'w'):
pass

os.environ['TASKDATA'] = ''
self.assertTrue('TASKDATA' not in os.environ)

self.assertDataPath(os.path.expanduser('~/.task'))

Expand Down

0 comments on commit fe5da90

Please sign in to comment.