コード例 #1
0
 def test_should_not_insert_default_version_operator_when_project_contains_operator_in_version(self):
     self.project.depends_on("spam", "==0.7")
     self.assertEqual('install_requires = [ "spam==0.7" ],', build_install_dependencies_string(self.project))
コード例 #2
0
    def test_should_not_insert_url_dependency_into_install_requires(self):
        self.project.depends_on("spam")
        self.project.depends_on("pyassert", url="https://github.com/downloads/halimath/pyassert/pyassert-0.2.2.tar.gz")

        self.assertEqual('install_requires = [ "spam" ],', build_install_dependencies_string(self.project))
コード例 #3
0
 def test_should_return_single_dependency_string(self):
     self.project.depends_on("spam")
     self.assertEqual('install_requires = [ "spam" ],', build_install_dependencies_string(self.project))
コード例 #4
0
 def test_should_return_multiple_dependencies_string_with_versions(self):
     self.project.depends_on("spam", "0.7")
     self.project.depends_on("eggs")
     self.assertEqual('install_requires = [ "eggs", "spam>=0.7" ],', build_install_dependencies_string(self.project))
コード例 #5
0
 def test_should_return_empty_string_when_no_dependency_is_given(self):
     self.assertEqual("", build_install_dependencies_string(self.project))