[pdm-devel] applied: [PATCH proxmox-datacenter-manager 1/8] test support: add NamedTempFile helper

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Apr 9 14:50:23 CEST 2025


Am 14.03.25 um 15:12 schrieb Lukas Wagner:
> This one is useful when writing tests, it automatically removes the
> temporary file when dropped. The name was chosen because of the similar
> NamedTempFile struct in the popular tempfile crate.
> 
> Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
> ---
>  server/src/lib.rs               |  2 +-
>  server/src/test_support/mod.rs  |  4 ++++
>  server/src/test_support/temp.rs | 33 +++++++++++++++++++++++++++++++++
>  3 files changed, 38 insertions(+), 1 deletion(-)
>  create mode 100644 server/src/test_support/temp.rs
> 
>

applied, thanks!




More information about the pdm-devel mailing list