Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
Add an additional test to check inter-dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwg4 committed Dec 16, 2015
1 parent b18fad6 commit 637b8bb
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
Empty file.
18 changes: 18 additions & 0 deletions tests/fixtures/foo_requirement/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from setuptools import setup

setup_options = dict(
name='foo_requirement',
version='0.1.0dev',
author='Kyle Gibson',
author_email='kyle.gibson@frozenonline.com',
description='Another test requirement fixture',
license='BSD',
url='',
packages=['foo_requirement'],
long_description='',
install_requires=['test_requirement'],
classifiers=[],
zip_safe=False,
)

setup(**setup_options)
15 changes: 15 additions & 0 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,21 @@ def test_install_with_requirement(self):
expected = ['test_requirement']
self.assertEqual(actual, expected)

def test_install_with_dependency(self):
# Verify that a requirement can be used after it is installed
self._add_requirements(
self._get_path('fixtures', 'test_requirement'),
self._get_path('fixtures', 'foo_requirement'),
)
self.assertInstall()
# Include a negative test as a control
actual = self._can_import_requirements(
'test_requirement',
'foo_requirements', # should not exist
)
expected = ['test_requirement', 'foo_requirement']
self.assertEqual(actual, expected)

def test_install_with_requirement_comments(self):
# Verify that a requirement file with comment lines can be used.
self._add_requirements(
Expand Down

0 comments on commit 637b8bb

Please sign in to comment.