def test_no_project_id(self): def evaluate(): firebase_admin.initialize_app(testutils.MockCredential()) with pytest.raises(ValueError): instance_id.delete_instance_id('test') testutils.run_without_project_id(evaluate)
def test_no_project_id(self): def evaluate(): app = firebase_admin.initialize_app(testutils.MockCredential(), name='myApp') assert app.project_id is None testutils.run_without_project_id(evaluate)
def test_no_project_id(): def evaluate(): firebase_admin.initialize_app(testutils.MockCredential()) with pytest.raises(ValueError): firestore.client() testutils.run_without_project_id(evaluate)
def test_no_project_id(self): def evaluate(): app = firebase_admin.initialize_app(testutils.MockCredential(), name='no_project_id') with pytest.raises(ValueError): ml.delete_model(MODEL_ID_1, app) testutils.run_without_project_id(evaluate)
def test_no_project_id(self): def evaluate(): app = firebase_admin.initialize_app(testutils.MockCredential(), name='no_project_id') with pytest.raises(ValueError): messaging.send(messaging.Message(topic='foo'), app=app) testutils.run_without_project_id(evaluate)