From 454f16a7c3e271fe15957a3b376cd955d2dca252 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 20 Nov 2015 10:12:15 +0100 Subject: [PATCH] Fixed a broken unit test (pro tip: test new tests before committing...) --- tests/util/test_file_helpers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/util/test_file_helpers.py b/tests/util/test_file_helpers.py index a39b2853..160f776c 100644 --- a/tests/util/test_file_helpers.py +++ b/tests/util/test_file_helpers.py @@ -204,4 +204,5 @@ class IsHiddenPathTest(unittest.TestCase): ) @ddt.unpack def test_is_hidden_path(self, path_id, expected): - self.assertEqual(octoprint.util.is_hidden_path(getattr(self, path_id)), expected) + path = getattr(self, path_id) if path_id is not None else None + self.assertEqual(octoprint.util.is_hidden_path(path), expected)