summaryrefslogtreecommitdiff
path: root/sw/db.py
diff options
context:
space:
mode:
authorTom Harley2021-07-10 21:41:09 +0000
committerTom Harley2021-07-11 14:23:35 +0000
commitc4e848c21c028ca7c52846ea1abd7f3a38aff7d6 (patch)
treefb886b06dcdd4d9ae4cc54ee9ea9f481ec124166 /sw/db.py
parentAdd basic inbox/outbox functionality (diff)
downloadswap-master.tar.gz
swap-master.zip

Add more inbox/outbox tests

HEADmaster

Still not even total coverage!

Need to:

  • write more tests for outbox manipulation
  • look into and implement receiving content from other servers (+ write tests)

off the top of my head.

Diffstat (limited to 'sw/db.py')
-rw-r--r--sw/db.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/sw/db.py b/sw/db.py
index dff8616..55c0bfe 100644
--- a/sw/db.py
+++ b/sw/db.py
@@ -18,10 +18,6 @@ def get_db():
return g.db
-def get_db_cursor():
- return get_db().cursor()
-
-
def close_db(e=None):
db = g.pop("db", None)