Skip to content
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,8 @@ class WebpushConfig(object):
150
150
data: A dictionary of data fields (optional). All keys and values in the dictionary must be
151
151
strings. When specified, overrides any data fields set via ``Message.data``.
152
152
notification: A ``messaging.WebpushNotification`` to be included in the message (optional).
153
- fcm_options: A ``messaging.WebpushFcmOptions`` to be included in the messsage (optional).
153
+ fcm_options: A ``messaging.WebpushFcmOptions`` instance to be included in the messsage
154
+ (optional).
154
155
155
156
.. _Webpush Specification: https://tools.ietf.org/html/rfc8030#section-5
156
157
"""
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def testdata():
42
42
return json .load (dino_file )
43
43
44
44
@pytest .fixture (scope = 'module' )
45
- def testref (update_rules ):
45
+ def testref (update_rules , testdata ):
46
46
"""Adds the necessary DB indices, and sets the initial values.
47
47
48
48
This fixture is attached to the module scope, and therefore is guaranteed to run only once
@@ -53,7 +53,7 @@ def testref(update_rules):
53
53
"""
54
54
del update_rules
55
55
ref = db .reference ('_adminsdk/python/dinodb' )
56
- ref .set (testdata () )
56
+ ref .set (testdata )
57
57
return ref
58
58
59
59
Original file line number Diff line number Diff line change 14
14
15
15
"""Integration tests for firebase_admin.firestore module."""
16
16
import datetime
17
- import pytest
18
-
19
- from google .cloud import exceptions # pylint: disable=import-error,no-name-in-module
20
17
21
18
from firebase_admin import firestore
22
19
@@ -36,8 +33,7 @@ def test_firestore():
36
33
assert data == expected
37
34
38
35
doc .delete ()
39
- with pytest .raises (exceptions .NotFound ):
40
- doc .get ()
36
+ assert doc .get ().exists is False
41
37
42
38
def test_server_timestamp ():
43
39
client = firestore .client ()
You can’t perform that action at this time.
0 commit comments