예제 #1
0
 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
 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
 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
 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
 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)