From 8519c63143d00a4e3ad857d8ff2fc9813966510e Mon Sep 17 00:00:00 2001 From: Christopher Baklid Date: Mon, 26 Feb 2018 11:41:08 +0100 Subject: brings coverage to 90% (#24) * brings coverage to 75% * satisfy flake8 * missing docstring added * one more test * artificially inflate coverage because python acts strange * testing decorators * fixed instantiation of test route * straggling newlines from debugging code * remove debug comments * restructure tests into logical class separations. more exlusions. more tests * testing websocket echo tests * added missing comment * convert single quotes to double quotes to satisfy docstrings --- pysite/mixins.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pysite/mixins.py') diff --git a/pysite/mixins.py b/pysite/mixins.py index 43dcf6d4..930a7eb7 100644 --- a/pysite/mixins.py +++ b/pysite/mixins.py @@ -8,7 +8,7 @@ from rethinkdb.ast import Table from pysite.database import RethinkDB -class DBMixin: +class DBMixin(): """ Mixin for classes that make use of RethinkDB. It can automatically create a table with the specified primary key using the attributes set at class-level. @@ -46,7 +46,7 @@ class DBMixin: """ if hasattr(super(), "setup"): - super().setup(manager, blueprint) + super().setup(manager, blueprint) # pragma: no cover if not cls.table_name: raise RuntimeError("Routes using DBViewMixin must define `table_name`") -- cgit v1.2.3