From 86df1325519f646972302166d18dededd1e5a3e9 Mon Sep 17 00:00:00 2001 From: Marnanel Thurman Date: Mon, 27 Aug 2018 19:13:30 +0100 Subject: [PATCH] built stub methods; basic tests pass --- things_for_testing/models.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/things_for_testing/models.py b/things_for_testing/models.py index 2b2c8de..8c8607c 100644 --- a/things_for_testing/models.py +++ b/things_for_testing/models.py @@ -44,8 +44,19 @@ class ThingArticle(models.Model): @classmethod def activity_create(cls, type_name, actor, fields): - raise ValueError('testing: '+str(fields)) + pass + @classmethod + def activity_update(cls, type_name, actor, fields, partial): + pass + + @classmethod + def activity_delete(cls, type_name, actor): + pass + + @classmethod + def activity_like(cls, type_name, actor, fobject): + pass register_type('Article', ThingArticle)