Esempio n. 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/'
Esempio n. 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/'
Esempio n. 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/'
Esempio n. 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/'