def test_get_store_record_2(a): """Test get_store_record.""" with pytest.raises(Exception): payload = { "email-ids": "*****@*****.**", "git-sha": "somesha", "git-url": "test" } DatabaseIngestion.store_record(payload) a.side_effect = Exception() with pytest.raises(Exception): payload = { "email-ids": "*****@*****.**", "git-sha": "somesha", "git-url": "test" } DatabaseIngestion.store_record(payload)
def test_get_store_record_1(_a, _b): """Test get_store_record.""" payload = { "email-ids": "*****@*****.**", "git-sha": "somesha", "git-url": "test" } resp = DatabaseIngestion.store_record(payload) assert resp == "get_info"
def test_get_store_record(): """Test get_store_record.""" with pytest.raises(Exception): DatabaseIngestion.store_record({ "test": "test" })