summaryrefslogtreecommitdiff
path: root/sw/__init__.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/__init__.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/__init__.py')
-rw-r--r--sw/__init__.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/sw/__init__.py b/sw/__init__.py
index b4224fb..6f2869a 100644
--- a/sw/__init__.py
+++ b/sw/__init__.py
@@ -2,7 +2,7 @@ import os
from flask import Flask
-from sw import auth, ap, db, users
+from sw import auth, db, users
def create_app(test_config=None):
@@ -23,14 +23,9 @@ def create_app(test_config=None):
except OSError:
pass
- @app.route("/hello")
- def hello():
- return "Hello, World!"
-
db.init_app(app)
app.register_blueprint(auth.bp)
- app.register_blueprint(ap.bp)
app.register_blueprint(users.bp)
return app