mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-18 13:09:08 +02:00
* Put server in separate module * Fix flask app name for server in submodule * Added common module
12 lines
309 B
Python
12 lines
309 B
Python
from squeaknode.server import create_app
|
|
|
|
|
|
def test_config():
|
|
"""Test create_app without passing test config."""
|
|
assert not create_app().testing
|
|
assert create_app({"TESTING": True}).testing
|
|
|
|
|
|
def test_hello(client):
|
|
response = client.get("/hello")
|
|
assert response.data == b"Hello, World!"
|