Add reviewed NMI hosted invoices and read-only payment reconciliation
This commit is contained in:
@@ -43,6 +43,11 @@ request("/api/auth/login", "POST", {"email": os.environ["BOOTSTRAP_EMAIL"], "pas
|
||||
session = request("/api/session")
|
||||
assert session["user"]["role"] == "Owner"
|
||||
csrf = session["csrfToken"]
|
||||
payment_status = request("/api/payments/status")
|
||||
assert payment_status["configured"] is False and payment_status["createsConfigured"] is False
|
||||
assert "securityKey" not in payment_status
|
||||
request("/api/payments/controls", "PUT", {"version": 0, "enabled": True}, expected=400)
|
||||
assert request("/api/payments/requests") == []
|
||||
hotel = request("/api/hotel")
|
||||
if "--read" in sys.argv:
|
||||
assert hotel["signature"] == "Persisted across container restart"
|
||||
|
||||
Reference in New Issue
Block a user