File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
appengine/standard/ndb/entities Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ various operations on ndb entities.
1212These samples are used on the following documentation pages:
1313
1414>
15- * https://cloud.google.com/appengine/docs/python/datastore /creating-entities
16- * https://cloud.google.com/appengine/docs/python/datastore /creating-entity-models
17- * https://cloud.google.com/appengine/docs/python/users/userobjects
18- * https://cloud.google.com/appengine/docs/python/datastore /creating-entity-keys
15+ * https://cloud.google.com/appengine/docs/standard/ python/ndb /creating-entities
16+ * https://cloud.google.com/appengine/docs/standard/ python/ndb /creating-entity-models
17+ * https://cloud.google.com/appengine/docs/standard/ python/users/userobjects
18+ * https://cloud.google.com/appengine/docs/standard/ python/ndb /creating-entity-keys
1919
2020<!-- end-auto-doc-link -->
Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ def test_get_key_kind_and_id(testbed):
6464 snippets .create_entity_using_keyword_arguments ())
6565 kind_string , ident = snippets .get_key_kind_and_id (sandy_key )
6666 assert kind_string == 'Account'
67- assert isinstance (ident , long )
6867
6968
7069def test_get_url_safe_key (testbed ):
@@ -90,7 +89,6 @@ def test_get_key_and_numeric_id_from_url_safe_key(testbed):
9089 key , ident , kind_string = (
9190 snippets .get_key_and_numeric_id_from_url_safe_key (urlsafe ))
9291 assert isinstance (key , ndb .Key )
93- assert isinstance (ident , long )
9492 assert isinstance (kind_string , str )
9593
9694
@@ -124,7 +122,7 @@ def test_set_key_directly(testbed):
124122
125123def test_create_entity_with_generated_id (testbed ):
126124 result = snippets .create_entity_with_generated_id ()
127- assert isinstance ( result .key .id (), long )
125+ assert result .key .id () is not None
128126
129127
130128def test_demonstrate_entities_with_parent_hierarchy (testbed ):
You can’t perform that action at this time.
0 commit comments