Commit graph

8 commits

Author SHA1 Message Date
nbehrnd
09903e82fb
Merge branch 'master' into rebuild_pytest 2024-10-31 11:45:27 +01:00
Norwid Behrnd
a2a9323063 fix(test_generator.org): rewrite first portion of pytest tests
The export by tangle from the org file is constrained to the first
set of tests by pytest.  This section is rewritten to yield a more
portable format to work either for Linux Debian, or Windows 10.

Running

```shell
python -m pytest
```

in their respective virtual environments, the set of 60 items to
test all pass (Debian: Python 3.12.6, pytest 8.3.3; Windows 10:
Python 3.12.4, pytest 8.3.3).

Signed-off-by: Norwid Behrnd <nbehrnd@yahoo.com>
2024-10-31 11:13:26 +01:00
Norwid Behrnd
a282a32a0e extend patten timestamps by date2name, 2/2
Addition of the pattern --compact, --month, and --short.
2022-01-09 13:20:42 +01:00
Norwid Behrnd
c44d7070c4 reorganize test section --smart-prepend for extension
Ahead of the addition of checks about three stamp pattern issued
by date2name, the checker about appendfilename's the option
--smart-prepent is reorganized to be more compact/easier to be
read.  For now, this outweights each filename being checked twice.
2022-01-09 11:25:06 +01:00
Norwid Behrnd
903b6adbe0 extend pattern timestamps by date2name, 1/2
This extends the pattern tested to consider all five stamp formats
issued by date2name when passing appendfilename either in default,
or prepend mode.  It doesn't yet the --smart-prepend mode as third
option.
2022-01-09 11:08:56 +01:00
Norwid Behrnd
49254c4429 clarify the call sign issue of pytest
Depending on the installation/Linux distribution used, pytest for
Python 3 may be invoked by either pytest, or pytest-3.  The issue
is addressed.
2022-01-09 10:54:05 +01:00
Norwid Behrnd
c9ef4864c0 Cherry-pick tester-time (0291b2d), d2n time stamps
Checks of appendfilename --smart-prepend now consider date2name'
default time stamp (YYYY-MM-DD), the by date2name --withtime
(YYYY-MM-DDTHH.MM.SS), or absence of such by pattern recognition
with regular expressions.
2022-01-07 11:10:27 +01:00
Norwid Behrnd
1f1292d04a Cherry-pick from cebc8c42
For programmatic testing of appendfilename, a test generator
is written.  This tangles a Makefile, a pytest.ini and the
test script.  Despite the incomplete coverage of this approach,
an inconsistency in appendfilename's interaction on files with
the simple YYYY-MM-DD timestamp (date2name) is spot.
2022-01-06 16:09:05 +01:00