Skip to content

Commit

Permalink
chore(backend): added snapshot test for work report
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras committed Jun 26, 2024
1 parent ecbfdec commit 6f01325
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions backend/timed/reports/tests/__snapshots__/test_work_report.ambr

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions backend/timed/reports/tests/test_work_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def test_work_report_single_project(
is_employed,
is_customer_assignee,
is_customer,
snapshot,
expected,
status_code,
django_assert_num_queries,
Expand Down Expand Up @@ -80,6 +81,7 @@ def test_work_report_single_project(
if status_code == status.HTTP_200_OK:
assert "1708-20170901-Customer_Name-Project.ods" in (res["Content-Disposition"])

assert snapshot == res.content
content = io.BytesIO(res.content)
doc = ezodf.opendoc(content)
table = doc.sheets[0]
Expand Down

0 comments on commit 6f01325

Please sign in to comment.