Rotary Logger  1.0.2
The middleware rotary logger
Loading...
Searching...
No Matches
tests.test_rotary_logger_verify_path Namespace Reference

Functions

None test_unwritable_root_fallback ()
 
None test_tmpdir_accepted (Path tmp_path)
 

Detailed Description

# +==== BEGIN rotary_logger =================+
# LOGO: 
# ..........####...####..........
# ......###.....#.#########......
# ....##........#.###########....
# ...#..........#.############...
# ...#..........#.#####.######...
# ..#.....##....#.###..#...####..
# .#.....#.##...#.##..##########.
# #.....##########....##...######
# #.....#...##..#.##..####.######
# .#...##....##.#.##..###..#####.
# ..#.##......#.#.####...######..
# ..#...........#.#############..
# ..#...........#.#############..
# ...##.........#.############...
# ......#.......#.#########......
# .......#......#.########.......
# .........#####...#####.........
# /STOP
# PROJECT: rotary_logger
# FILE: test_rotary_logger_verify_path.py
# CREATION DATE: 29-10-2025
# LAST Modified: 23:33:44 29-10-2025
# DESCRIPTION: 
# A module that provides a universal python light on iops way of logging to files your program execution.
# /STOP
# COPYRIGHT: (c) Asperguide
# PURPOSE: This is the test file in charge of checking if the error handling for paths work for writable and unwritable paths.
# // AR
# +==== END rotary_logger =================+

Function Documentation

◆ test_tmpdir_accepted()

None tests.test_rotary_logger_verify_path.test_tmpdir_accepted ( Path tmp_path)
A writable absolute tmp path should be accepted and the configured
base folder ('logs') appended if missing.

Definition at line 77 of file test_rotary_logger_verify_path.py.

◆ test_unwritable_root_fallback()

None tests.test_rotary_logger_verify_path.test_unwritable_root_fallback ( )
If the provided path is not writable (e.g. /root), the function should
fall back to the package default log folder.

Definition at line 46 of file test_rotary_logger_verify_path.py.