Пример #1
0
 def test_up_to_project(self, session):
     build = Build(self.p, **self.data)
     session.commit()
     result = build.get_url('project')
     assert result == '/builds/ceph/'
Пример #2
0
 def test_up_to_project(self, session):
     build = Build(self.p, **self.data)
     session.commit()
     result = build.get_url('project')
     assert result == '/builds/ceph/'
Пример #3
0
 def test_by_sha1(self, session):
     build = Build(self.p, **self.data)
     session.commit()
     result = build.get_url('sha1')
     assert result == '/builds/ceph/master/sha1/'
Пример #4
0
 def test_by_sha1(self, session):
     build = Build(self.p, **self.data)
     session.commit()
     result = build.get_url('sha1')
     assert result == '/builds/ceph/master/sha1/'