コード例 #1
0
ファイル: test_update.py プロジェクト: openstack/requirements
 def test_test_project(self):
     reqs = common.project_file(
         self.fail, common.project_project, 'test-requirements.txt')
     self.assertIn("testtools>=0.9.32", reqs)
     self.assertIn("testrepository>=0.0.17", reqs)
     # make sure we didn't add something we shouldn't
     self.assertNotIn("sphinxcontrib-pecanwsme>=0.2", reqs)
コード例 #2
0
 def test_project_with_oslo(self):
     reqs = common.project_file(
         self.fail, common.oslo_project, 'requirements.txt.global',
         suffix='global')
     oslo_tar = ("-f http://tarballs.openstack.org/oslo.config/"
                 "oslo.config-1.2.0a3.tar.gz#egg=oslo.config-1.2.0a3")
     self.assertIn(oslo_tar, reqs)
コード例 #3
0
ファイル: test_update.py プロジェクト: openstack/requirements
 def test_project(self):
     reqs = common.project_file(
         self.fail, common.project_project, 'requirements.txt')
     # ensure various updates take
     self.assertIn("jsonschema!=1.4.0,<2,>=1.0.0", reqs)
     self.assertIn("python-keystoneclient>=0.4.1", reqs)
     self.assertIn("SQLAlchemy<=0.7.99,>=0.7", reqs)
コード例 #4
0
 def test_project(self):
     reqs = common.project_file(
         self.fail, common.project_project, 'requirements.txt.global',
         suffix='global')
     # ensure various updates take
     self.assertIn("jsonschema>=1.0.0,!=1.4.0,<2", reqs)
     self.assertIn("python-keystoneclient>=0.4.1", reqs)
     self.assertIn("SQLAlchemy>=0.7,<=0.7.99", reqs)
コード例 #5
0
ファイル: test_update.py プロジェクト: openstack/requirements
 def test_requirements_header(self):
     _REQS_HEADER = [
         '# The order of packages is significant, because pip processes '
         'them in the order',
         '# of appearance. Changing the order has an impact on the overall '
         'integration',
         '# process, which may cause wedges in the gate later.',
     ]
     reqs = common.project_file(
         self.fail, common.project_project, 'requirements.txt')
     self.assertEqual(_REQS_HEADER, reqs[:3])
コード例 #6
0
 def test_install_setup(self):
     setup_contents = common.project_file(
         self.fail, common.project_project, 'setup.py', suffix='global')
     self.assertIn("# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO"
                   " - DO NOT EDIT", setup_contents)
コード例 #7
0
ファイル: test_update.py プロジェクト: openstack/requirements
 def test_requirement_soft_update(self):
     reqs = common.project_file(
         self.fail, common.bad_project, 'requirements.txt',
         softupdate=True)
     self.assertIn("thisisnotarealdependency", reqs)
コード例 #8
0
ファイル: test_update.py プロジェクト: openstack/requirements
 def test_requirement_not_in_global_non_fatal(self):
     reqs = common.project_file(
         self.fail, common.bad_project, 'requirements.txt',
         non_std_reqs=True)
     self.assertNotIn("thisisnotarealdependency", reqs)
コード例 #9
0
 def test_requirement_soft_update(self):
     reqs = common.project_file(self.fail,
                                common.bad_project,
                                'requirements.txt',
                                softupdate=True)
     self.assertIn("thisisnotarealdependency", reqs)
コード例 #10
0
 def test_requirement_not_in_global_non_fatal(self):
     reqs = common.project_file(self.fail,
                                common.bad_project,
                                'requirements.txt',
                                non_std_reqs=True)
     self.assertNotIn("thisisnotarealdependency", reqs)
コード例 #11
0
 def test_project_with_oslo(self):
     reqs = common.project_file(self.fail, common.oslo_project,
                                'requirements.txt')
     oslo_tar = ("-f http://tarballs.openstack.org/oslo.config/"
                 "oslo.config-1.2.0a3.tar.gz#egg=oslo.config-1.2.0a3")
     self.assertIn(oslo_tar, reqs)
コード例 #12
0
 def test_install_setup(self):
     setup_contents = common.project_file(
         self.fail, common.project_project, 'setup.py', suffix='global')
     self.assertIn("# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO"
                   " - DO NOT EDIT", setup_contents)