Skip to content

Commit 2ff61db

Browse files
committed
Rename project and use developer sandbox for bruno tests
1 parent 2464220 commit 2ff61db

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
7272
- name: Run Bruno E2E tests
7373
working-directory: oicana/e2e-tests/bruno
74-
run: bru run --env fastapi --reporter-html results.html
74+
run: bru run --env fastapi --sandbox developer --reporter-html results.html
7575

7676
- name: Upload test results
7777
if: always()

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "oicana-example-fastapi"
2+
name = "oicana-example-python-fastapi"
33
version = "0.1.0"
44
description = "Example application using Oicana Python integration for PDF templating"
55
readme = "README.md"
@@ -8,7 +8,7 @@ license = { text = "MIT" }
88
dependencies = [
99
"fastapi>=0.115.0",
1010
"uvicorn[standard]>=0.32.0",
11-
"oicana>=0.1.0a2",
11+
"oicana>=0.1.0a3",
1212
"python-multipart>=0.0.12",
1313
]
1414

routers/certificates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async def create_certificate(request: CreateCertificate):
4646
try:
4747
pdf_bytes = template.compile(
4848
json_inputs=json_inputs,
49-
export_format={"format": "pdf"},
49+
export={"format": "pdf"},
5050
mode=CompilationMode.PRODUCTION,
5151
)
5252
except Exception as e:

routers/templates.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ async def compile_template(template_id: str, payload: CompilationPayload):
158158
pdf_bytes = template.compile(
159159
json_inputs=json_inputs,
160160
blob_inputs=blob_inputs,
161-
export_format={"format": "pdf"},
161+
export={"format": "pdf"},
162162
mode=CompilationMode.PRODUCTION,
163163
)
164164
except Exception as e:
@@ -210,7 +210,7 @@ async def preview_template(template_id: str, payload: CompilationPayload):
210210
png_bytes = template.compile(
211211
json_inputs=json_inputs,
212212
blob_inputs=blob_inputs,
213-
export_format={"format": "png", "pixelsPerPt": 1.0},
213+
export={"format": "png", "pixelsPerPt": 1.0},
214214
mode=CompilationMode.DEVELOPMENT,
215215
)
216216
except Exception as e:

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)