Reuse the same requirements
@@ -850,25 +850,29 @@ class TestPythonEnvironment(TestCase):
self.build_env_mock = Mock()
- def test_install_core_requirements_sphinx(self):
- python_env = Virtualenv(
- version=self.version_sphinx,
- build_env=self.build_env_mock,
- )
- python_env.install_core_requirements()
- requirements = [
+ self.base_requirements = [
'Pygments==2.2.0',
'setuptools==37.0.0',
'docutils==0.13.1',
'mock==1.0.1',
'pillow==2.6.1',
'alabaster>=0.7,<0.8,!=0.7.5',
+ ]
+
+ def test_install_core_requirements_sphinx(self):
+ python_env = Virtualenv(
+ version=self.version_sphinx,
+ build_env=self.build_env_mock,
+ )
+ python_env.install_core_requirements()
+ requirements_sphinx = [
'commonmark==0.5.4',
'recommonmark==0.4.0',
'sphinx==1.6.5',
'sphinx-rtd-theme<0.3',
'readthedocs-sphinx-ext<0.6',
]
+ requirements = self.base_requirements + requirements_sphinx
args = [
'python',
mock.ANY, # pip path
@@ -889,17 +893,12 @@ class TestPythonEnvironment(TestCase):
build_env=self.build_env_mock
)
python_env.install_core_requirements()
- requirements = [
- 'Pygments==2.2.0',
- 'setuptools==37.0.0',
- 'docutils==0.13.1',
- 'mock==1.0.1',
- 'pillow==2.6.1',
- 'alabaster>=0.7,<0.8,!=0.7.5',
+ requirements_mkdocs = [
'commonmark==0.5.4',
'recommonmark==0.4.0',
'mkdocs==0.15.0',
]
+ requirements = self.base_requirements + requirements_mkdocs
args = [
'python',
mock.ANY, # pip path
