Skip to content

Commit

Permalink
Fix test fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljoseph committed Oct 2, 2014
1 parent 0142402 commit f408ec6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
3 changes: 1 addition & 2 deletions tests/test_remarkable.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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')

Expand Down

0 comments on commit f408ec6

Please sign in to comment.