summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-07-31 16:03:13 +0300
committerLars Wirzenius <liw@liw.fi>2018-07-31 16:03:13 +0300
commitefb3a40d113b8fbb20946d635f417750f1be68b7 (patch)
treef5598684b58a63670dd6f5cedf2a16fc330fd6e8
parentec98a47133723f079d9cae27708cdb6d62ef87ba (diff)
downloadqvisqve-efb3a40d113b8fbb20946d635f417750f1be68b7.tar.gz
Fix: things pylint whinges about
-rw-r--r--qvisqve/auth_router.py3
-rw-r--r--qvisqve/authn_entity_manager.py2
-rw-r--r--qvisqve/entity_manager.py5
-rw-r--r--qvisqve/entity_manager_tests.py6
4 files changed, 3 insertions, 13 deletions
diff --git a/qvisqve/auth_router.py b/qvisqve/auth_router.py
index 378a995..691571f 100644
--- a/qvisqve/auth_router.py
+++ b/qvisqve/auth_router.py
@@ -17,9 +17,6 @@
import urllib.parse
-import bottle
-
-
import qvisqve
diff --git a/qvisqve/authn_entity_manager.py b/qvisqve/authn_entity_manager.py
index 32e2da3..68d0c3e 100644
--- a/qvisqve/authn_entity_manager.py
+++ b/qvisqve/authn_entity_manager.py
@@ -14,8 +14,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-import os
-
import qvisqve
import qvisqve_secrets
diff --git a/qvisqve/entity_manager.py b/qvisqve/entity_manager.py
index da42f5b..b39d7e6 100644
--- a/qvisqve/entity_manager.py
+++ b/qvisqve/entity_manager.py
@@ -14,11 +14,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-import os
-
-import yaml
-
-
class EntityManager:
def __init__(self, rs, resource_type):
diff --git a/qvisqve/entity_manager_tests.py b/qvisqve/entity_manager_tests.py
index 5088da4..4ad9bb1 100644
--- a/qvisqve/entity_manager_tests.py
+++ b/qvisqve/entity_manager_tests.py
@@ -37,13 +37,13 @@ class EntityManagerTests(unittest.TestCase):
self.em.get('does-not-exist')
def test_creates_an_entity(self):
- foo = {
+ entity = {
'foo': 'foo is cool',
}
foo_id = 'foo is my entity'
- self.em.create(foo_id, foo)
+ self.em.create(foo_id, entity)
self.assertEqual(self.em.list(), [foo_id])
- self.assertEqual(self.em.get(foo_id), foo)
+ self.assertEqual(self.em.get(foo_id), entity)
class ApplicationManagerTests(unittest.TestCase):