Exemplo n.º 1
0
 def test_delete_manifest(self):
     repo_name = self.items['Door43/en_obs']['repo_name']
     user_name = self.items['Door43/en_obs']['user_name']
     tx_manifest = TxManifest.get(repo_name=repo_name, user_name=user_name)
     self.assertIsNotNone(tx_manifest)
     tx_manifest.delete()
     self.assertEqual(TxManifest.query(repo_name=repo_name, user_name=user_name).count(), 0)
Exemplo n.º 2
0
 def test_query_manifest(self):
     manifests = TxManifest.query()
     self.assertEqual(manifests.count(), len(self.items))
     for tx_manifest in manifests:
         self.assertEqual(tx_manifest.resource_id,
                          self.items[f'{tx_manifest.user_name}/{tx_manifest.repo_name}']['resource_id'])