test_azure_cosmos_1.py 893 B

12345678910111213141516171819202122
  1. def setUp(self):
  2. # set up some test variables
  3. self.test_end_point = 'https://test_endpoint:443'
  4. self.test_master_key = 'magic_test_key'
  5. self.test_database_name = 'test_database_name'
  6. self.test_collection_name = 'test_collection_name'
  7. self.test_database_default = 'test_database_default'
  8. self.test_collection_default = 'test_collection_default'
  9. db.merge_conn(
  10. Connection(
  11. conn_id='azure_cosmos_test_key_id',
  12. conn_type='azure_cosmos',
  13. login=self.test_end_point,
  14. password=self.test_master_key,
  15. extra=json.dumps(
  16. {
  17. 'database_name': self.test_database_default,
  18. 'collection_name': self.test_collection_default,
  19. }
  20. ),
  21. )
  22. )