Example #1
0
 def test_delete_will_delete_arch(self, session):
     repo = Repo(self.p, **self.data)
     Arch(name="x86_64", repo=repo)
     session.commit()
     repo = Repo.get(1)
     repo.delete()
     session.commit()
     assert not Repo.query.first()
     assert not Arch.query.first()
Example #2
0
 def test_delete_will_delete_arch(self, session):
     repo = Repo(self.p, **self.data)
     Arch(name="x86_64", repo=repo)
     session.commit()
     repo = Repo.get(1)
     repo.delete()
     session.commit()
     assert not Repo.query.first()
     assert not Arch.query.first()