diff options
author | Parker Berberian <pberberian@iol.unh.edu> | 2019-07-08 16:39:54 -0400 |
---|---|---|
committer | Parker Berberian <pberberian@iol.unh.edu> | 2019-07-10 09:12:20 -0400 |
commit | 38b4412f8b6cf21371b67e8de917f5a24b2bf72d (patch) | |
tree | b19adcaf27fce5d161b226017b62ce7e91a83be2 /src/workflow/models.py | |
parent | 35c8640a32b7c6b3b35d68367668898fdfd7d423 (diff) |
Fixes and adds Tests
Fixes old tests and adds some more.
Also fixes linting errors
Change-Id: If84f0ed2dab5f9ffa7ce2deb92e058b0076d9154
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
Diffstat (limited to 'src/workflow/models.py')
-rw-r--r-- | src/workflow/models.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/workflow/models.py b/src/workflow/models.py index 0521165..9d1fac2 100644 --- a/src/workflow/models.py +++ b/src/workflow/models.py @@ -224,18 +224,9 @@ class WorkflowStep(object): template = get_template(self.template) return template.render(self.get_context(), request) - def post_render(self, request): - self.post(request.POST, request.user) - return self.render(request) - def post(self, post_content, user): raise Exception("WorkflowStep subclass of type " + str(type(self)) + " has no concrete post() method") - def test_render(self, request): - if request.method == "POST": - return self.post_render(request) - return self.render(request) - def validate(self, request): pass |