fix: friendly 502 handling, 2 uvicorn workers, file bundle cache (0.20.18)
This commit is contained in:
@@ -70,7 +70,8 @@ def test_custom_deploy_script_escapes_single_quotes():
|
||||
assert "O''Brien" in script
|
||||
|
||||
|
||||
def test_rdp_bundle_zip_adds_utf8_bom_for_ps1(tmp_path: Path):
|
||||
def test_rdp_bundle_zip_adds_utf8_bom_for_ps1(tmp_path: Path, monkeypatch):
|
||||
monkeypatch.setattr("app.services.rdp_bundle_delivery.BUNDLE_DIR", tmp_path)
|
||||
repo = tmp_path / "repo"
|
||||
repo.mkdir()
|
||||
(repo / "Deploy-LoginMonitor.ps1").write_text("# test", encoding="utf-8")
|
||||
@@ -83,7 +84,8 @@ def test_rdp_bundle_zip_adds_utf8_bom_for_ps1(tmp_path: Path):
|
||||
assert data.startswith(_UTF8_BOM)
|
||||
|
||||
|
||||
def test_rdp_bundle_zip_roundtrip(tmp_path: Path):
|
||||
def test_rdp_bundle_zip_roundtrip(tmp_path: Path, monkeypatch):
|
||||
monkeypatch.setattr("app.services.rdp_bundle_delivery.BUNDLE_DIR", tmp_path)
|
||||
repo = tmp_path / "repo"
|
||||
repo.mkdir()
|
||||
for name in RDP_BUNDLE_REQUIRED:
|
||||
|
||||
Reference in New Issue
Block a user