Fixed some tests that only worked for me.

This commit is contained in:
Andrew Hamilton 2016-11-10 01:01:25 +01:00
parent 864587da5c
commit 065d62d2fc
4 changed files with 6 additions and 3 deletions

View file

@ -54,6 +54,9 @@ class ToolsTestCase(unittest.TestCase):
golden_path = result_path(tool, input_filename)
text = widget_to_string(result)
text = text.replace(os.environ["HOME"], "/home/EVERY_USER")
text = text.replace(
"%s/%s" % (os.environ["USER"], os.environ["USER"]),
"EVERY_USER/EVERY_USER")
golden.assertGolden(text, golden_path)
self.assertEqual(status, expected_status)