censor/Censor
1
37
Fork
You've already forked Censor
3

chore(testing): add backend tests #112

Merged
mahlzahn merged 1 commit from mahlzahn/testing into main 2026年03月04日 12:37:46 +01:00 AGit
  • added backend tests for
    • Action,
    • History,
    • Rectangle, and
    • Document including tests with a test document redacting
      • text,
      • drawings, and
      • images
  • refactored mildly:
    • Document.futureDocument.has_future
    • Rectangle.pymupdf_rect now instance property instead of method
  • added some functions/properties; they aren’t used, yet, and may be
    cleaned up later, namely:
    • Document.path
    • Page.get_height and Page.get_weight: they were used by
      Document.get_maximum_height and Document.get_maximum_weight,
      respectively
    • Rectangle.__eq__: used for easier testing
  • added backend testing to CI workflow for new PRs and on pushes to main

Related: #110

- added backend tests for - `Action`, - `History`, - `Rectangle`, and - `Document` including tests with a test document redacting - text, - drawings, and - images - refactored mildly: - `Document.future` → `Document.has_future` - `Rectangle.pymupdf_rect` now instance property instead of method - added some functions/properties; they aren’t used, yet, and may be cleaned up later, namely: - `Document.path` - `Page.get_height` and `Page.get_weight`: they were used by `Document.get_maximum_height` and `Document.get_maximum_weight`, respectively - `Rectangle.__eq__`: used for easier testing - added backend testing to CI workflow for new PRs and on pushes to main Related: #110
censor-bot approved these changes 2026年03月04日 11:42:02 +01:00
Dismissed

Note

The build job for 463be375817d94fd329fe8ffd30d8085d6a6816d finished with status success. Install and run the x86_64 test build with:

curl https://gitlab.gnome.org/mahlzahn/censor-ci/-/jobs/6236501/artifacts/raw/censor-dev.flatpak -o censor-dev.flatpak
flatpak install --user censor-dev.flatpak
flatpak run --user page.codeberg.censor.Censor.Devel
> **Note** > The [build job](https://gitlab.gnome.org/mahlzahn/censor-ci/-/jobs/6236501) for 463be375817d94fd329fe8ffd30d8085d6a6816d finished with status **success**. Install and run the x86_64 test build with: > > curl https://gitlab.gnome.org/mahlzahn/censor-ci/-/jobs/6236501/artifacts/raw/censor-dev.flatpak -o censor-dev.flatpak > flatpak install --user censor-dev.flatpak > flatpak run --user page.codeberg.censor.Censor.Devel
mahlzahn dismissed censor-bot's review 2026年03月04日 11:46:12 +01:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

mahlzahn force-pushed mahlzahn/testing from 463be37581
Some checks failed
/ merge-conditions (pull_request) Failing after 8s
/ build-start (pull_request_target) Successful in 12s
/ checks (pull_request) Failing after 37s
to a48fa365d1
Some checks failed
/ build-start (pull_request_target) Successful in 10s
/ merge-conditions (pull_request) Failing after 7s
/ checks (pull_request) Failing after 39s
2026年03月04日 11:46:16 +01:00
Compare
censor-bot approved these changes 2026年03月04日 11:47:11 +01:00
Dismissed

Note

The build job for a48fa365d150287c1ee1b5f89dc818029837fd75 finished with status success. Install and run the x86_64 test build with:

curl https://gitlab.gnome.org/mahlzahn/censor-ci/-/jobs/6236598/artifacts/raw/censor-dev.flatpak -o censor-dev.flatpak
flatpak install --user censor-dev.flatpak
flatpak run --user page.codeberg.censor.Censor.Devel
> **Note** > The [build job](https://gitlab.gnome.org/mahlzahn/censor-ci/-/jobs/6236598) for a48fa365d150287c1ee1b5f89dc818029837fd75 finished with status **success**. Install and run the x86_64 test build with: > > curl https://gitlab.gnome.org/mahlzahn/censor-ci/-/jobs/6236598/artifacts/raw/censor-dev.flatpak -o censor-dev.flatpak > flatpak install --user censor-dev.flatpak > flatpak run --user page.codeberg.censor.Censor.Devel
mahlzahn dismissed censor-bot's review 2026年03月04日 11:49:18 +01:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

mahlzahn force-pushed mahlzahn/testing from a48fa365d1
Some checks failed
/ build-start (pull_request_target) Successful in 10s
/ merge-conditions (pull_request) Failing after 7s
/ checks (pull_request) Failing after 39s
to e2a594025a
Some checks failed
/ build-start (pull_request_target) Has been cancelled
/ checks (pull_request) Successful in 1m40s
/ merge-conditions (pull_request) Successful in 10s
2026年03月04日 11:49:20 +01:00
Compare
mahlzahn added this to the v0.5.0 milestone 2026年03月04日 11:52:13 +01:00
mahlzahn force-pushed mahlzahn/testing from e2a594025a
Some checks failed
/ build-start (pull_request_target) Has been cancelled
/ checks (pull_request) Successful in 1m40s
/ merge-conditions (pull_request) Successful in 10s
to 95c80d403b
All checks were successful
/ merge-conditions (pull_request) Successful in 8s
/ build-start (pull_request_target) Successful in 10s
/ checks (pull_request) Successful in 58s
2026年03月04日 11:56:46 +01:00
Compare
censor-bot approved these changes 2026年03月04日 11:57:54 +01:00
Dismissed

Note

The build job for 95c80d403bdf527d21bce7be436bde96db446ec9 finished with status success. Install and run the x86_64 test build with:

curl https://gitlab.gnome.org/mahlzahn/censor-ci/-/jobs/6236640/artifacts/raw/censor-dev.flatpak -o censor-dev.flatpak
flatpak install --user censor-dev.flatpak
flatpak run --user page.codeberg.censor.Censor.Devel
> **Note** > The [build job](https://gitlab.gnome.org/mahlzahn/censor-ci/-/jobs/6236640) for 95c80d403bdf527d21bce7be436bde96db446ec9 finished with status **success**. Install and run the x86_64 test build with: > > curl https://gitlab.gnome.org/mahlzahn/censor-ci/-/jobs/6236640/artifacts/raw/censor-dev.flatpak -o censor-dev.flatpak > flatpak install --user censor-dev.flatpak > flatpak run --user page.codeberg.censor.Censor.Devel
mahlzahn dismissed censor-bot's review 2026年03月04日 12:02:19 +01:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

mahlzahn force-pushed mahlzahn/testing from 95c80d403b
All checks were successful
/ merge-conditions (pull_request) Successful in 8s
/ build-start (pull_request_target) Successful in 10s
/ checks (pull_request) Successful in 58s
to 59842721a0
Some checks failed
/ build-start (pull_request_target) Has been cancelled
/ merge-conditions (pull_request) Successful in 16s
/ checks (pull_request) Successful in 1m24s
2026年03月04日 12:02:21 +01:00
Compare
mahlzahn force-pushed mahlzahn/testing from 59842721a0
Some checks failed
/ build-start (pull_request_target) Has been cancelled
/ merge-conditions (pull_request) Successful in 16s
/ checks (pull_request) Successful in 1m24s
to 4a08ef0df6
Some checks failed
/ build-start (pull_request_target) Has been cancelled
/ merge-conditions (pull_request) Successful in 13s
/ checks (pull_request) Successful in 1m48s
2026年03月04日 12:11:04 +01:00
Compare
mahlzahn force-pushed mahlzahn/testing from 4a08ef0df6
Some checks failed
/ build-start (pull_request_target) Has been cancelled
/ merge-conditions (pull_request) Successful in 13s
/ checks (pull_request) Successful in 1m48s
to f8d348ed9f
Some checks failed
/ build-start (pull_request_target) Has been cancelled
/ merge-conditions (pull_request) Successful in 8s
/ checks (pull_request) Successful in 1m11s
2026年03月04日 12:14:25 +01:00
Compare
mahlzahn force-pushed mahlzahn/testing from f8d348ed9f
Some checks failed
/ build-start (pull_request_target) Has been cancelled
/ merge-conditions (pull_request) Successful in 8s
/ checks (pull_request) Successful in 1m11s
to 6198fb7c33
Some checks failed
/ build-start (pull_request_target) Has been cancelled
/ merge-conditions (pull_request) Successful in 8s
/ checks (pull_request) Successful in 57s
/ release-publish (pull_request_target) Has been skipped
2026年03月04日 12:27:13 +01:00
Compare
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
censor/Censor!112
Reference in a new issue
censor/Censor
No description provided.
Delete branch "mahlzahn/testing"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?