@@ -926,11 +926,10 @@ class TestDatastoreDumpInterface(object):
926926 def test_unknown_format_rejected (self , app ):
927927 # Sanity check: the schema's one_of validator rejects formats
928928 # not in the registry, regardless of any plugin.
929- resource = factories .Resource ()
929+ resource = factories .Resource (url_type = 'datastore' )
930930 helpers .call_action (
931931 "datastore_create" ,
932932 resource_id = resource ["id" ],
933- force = True ,
934933 records = [{"book" : "annakarenina" }],
935934 )
936935
@@ -943,11 +942,10 @@ def test_unknown_format_rejected(self, app):
943942 )
944943 @pytest .mark .usefixtures ("clean_datastore" , "with_plugins" )
945944 def test_dump_custom_format_added_via_plugin (self , app ):
946- resource = factories .Resource ()
945+ resource = factories .Resource (url_type = 'datastore' )
947946 helpers .call_action (
948947 "datastore_create" ,
949948 resource_id = resource ["id" ],
950- force = True ,
951949 records = [{"book" : "annakarenina" }, {"book" : "warandpeace" }],
952950 )
953951
@@ -972,11 +970,10 @@ def test_dump_xml_disabled_via_plugin(self, app):
972970 # The plugin returns {"xml": None}, which removes the format
973971 # from the registry. The schema's one_of validator then rejects
974972 # ?format=xml at validation time (HTTP 400).
975- resource = factories .Resource ()
973+ resource = factories .Resource (url_type = 'datastore' )
976974 helpers .call_action (
977975 "datastore_create" ,
978976 resource_id = resource ["id" ],
979- force = True ,
980977 records = [{"book" : "annakarenina" }],
981978 )
982979
0 commit comments