test/data/entities.py
changeset 10529 747eded13c68
parent 9214 be05b42b4825
--- a/test/data/entities.py	Thu Jul 09 16:55:28 2015 +0200
+++ b/test/data/entities.py	Thu Jul 09 11:26:09 2015 +0200
@@ -16,7 +16,9 @@
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 
-from cubicweb.entities import AnyEntity, fetch_config
+from cubicweb.entities import AnyEntity, fetch_config, adapters
+from cubicweb.predicates import is_instance
+
 
 class Societe(AnyEntity):
     __regid__ = 'Societe'
@@ -34,3 +36,7 @@
 
 class Note(AnyEntity):
     __regid__ = 'Note'
+
+
+class FakeFileIDownloadableAdapter(adapters.IDownloadableAdapter):
+    __select__ = is_instance('FakeFile')