From f408ec6565af9204674c01d301ebeb6cea61a03d Mon Sep 17 00:00:00 2001 From: Michael Joseph Date: Thu, 2 Oct 2014 13:38:38 +0200 Subject: [PATCH] Fix test fixtures --- tests/__init__.py | 3 ++- tests/test_remarkable.py | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/__init__.py b/tests/__init__.py index d259c82..61ae0b5 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -38,7 +38,8 @@ class BaseTestCase(TestCase): - title = 'application-to-platform' + title = 'Application To Platform' + directory_name = 'application-to-platform' example_file = 'atp.md' def setUp(self): diff --git a/tests/test_remarkable.py b/tests/test_remarkable.py index 5dfe291..3d2cae3 100644 --- a/tests/test_remarkable.py +++ b/tests/test_remarkable.py @@ -14,7 +14,7 @@ class TestRemarkTestCase(BaseTestCase): def test_remark(self): - presentation_index = 'application-to-platform/index.html' + presentation_index = '%s/index.html' % self.directory_name sys.argv = [ 'remarkable', 'remark', @@ -25,7 +25,6 @@ def test_remark(self): self.assertTrue(os.path.exists(presentation_index)) presentation_contents = io.open(presentation_index).read() self.assertTrue(self.title in presentation_contents) - log.debug(presentation_contents) self.assertTrue('michaeljoseph' in presentation_contents) shutil.rmtree('application-to-platform')