Skip to content

Commit

Permalink
Test has_requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljoseph committed Nov 15, 2013
1 parent f848963 commit 4a207e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ def setUp(self):
with open(self.tmp_file, 'w') as init_file:
init_file.write('\n'.join(self.initial_init_content))

with open('%s/requirements.txt' % self.module_name, 'w') as req_file:
req_file.write('unittest2')

config.arguments.update({
'<module_name>': 'test_app',
'--dry-run': True,
Expand Down
3 changes: 3 additions & 0 deletions tests/test_probe.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ def test_probe_project(self):
def test_probe_with_alt_requirements(self):
config.arguments['--requirements'] = 'test-requirements.txt'
self.assertFalse(probe.probe_project(self.module_name))

def test_has_requirements(self):
self.assertTrue(probe.has_requirement('unittest2'))

0 comments on commit 4a207e3

Please sign in to comment.