1
0
mirror of https://github.com/craigerl/aprsd.git synced 2026-06-12 10:58:54 -04:00

Moved logging to log for wsgi.py

Added wsgi.py to be used with gunicorn to start aprsd's web admin
interface.

gunicorn -b :8080 "aprsd.wsgi:app"
This commit is contained in:
2023-07-16 16:28:15 -04:00
parent 565ffe3f72
commit 35d41582ee
20 changed files with 57 additions and 28 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ class TestSendMessageCommand(unittest.TestCase):
CONF.admin.user = "admin"
CONF.admin.password = "password"
@mock.patch("aprsd.logging.log.setup_logging")
@mock.patch("aprsd.log.log.setup_logging")
def test_no_tocallsign(self, mock_logging):
"""Make sure we get an error if there is no tocallsign."""
@@ -47,7 +47,7 @@ class TestSendMessageCommand(unittest.TestCase):
assert result.exit_code == 2
assert "Error: Missing argument 'TOCALLSIGN'" in result.output
@mock.patch("aprsd.logging.log.setup_logging")
@mock.patch("aprsd.log.log.setup_logging")
def test_no_command(self, mock_logging):
"""Make sure we get an error if there is no command."""