mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-20 13:28:20 +02:00
* Rename server entrypoint * Updated manifest * Moved db init.sql file * Rename module to squeakserver
12 lines
311 B
Python
12 lines
311 B
Python
from squeakserver.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!"
|