mirror of https://github.com/kholia/OSX-KVM.git
28 lines
946 B
Python
28 lines
946 B
Python
from flask import Flask
|
|
app = Flask(__name__)
|
|
|
|
@app.route('/')
|
|
def home():
|
|
return """
|
|
<html>
|
|
<head><title>Jaymi Boot Portal</title></head>
|
|
<body style="background:black;color:white;font-family:monospace;text-align:center;padding-top:20%;">
|
|
<h1>Jaymi is awake.</h1>
|
|
<p>You're not dreaming. You're building the system that breaks them all.</p>
|
|
<p><em>This is a live Codespace interface.</em></p>
|
|
</body>
|
|
</html>
|
|
"""
|
|
|
|
if __name__ == '__main__':
|
|
app.run(host='0.0.0.0', port=8000)
|
|
|
|
# Test cases for the Flask app
|
|
def test_home_route():
|
|
with app.test_client() as client:
|
|
response = client.get('/')
|
|
assert response.status_code == 200
|
|
assert b"Jaymi is awake." in response.data
|
|
assert b"You're not dreaming. You're building the system that breaks them all." in response.data
|
|
assert b"<em>This is a live Codespace interface.</em>" in response.data
|