mirror of
https://github.com/novoid/appendfilename.git
synced 2026-02-16 12:54:15 +00:00
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.
21 lines
976 B
Makefile
21 lines
976 B
Makefile
# GNU Make file for the automation of pytest for appendfilename.
|
|
#
|
|
# While the test script is written for Python 3.9.2, you might need to
|
|
# adjust the following instruction once in case your OS includes
|
|
# pytest for legacy Python 2 side by side to Python 3, or only hosts
|
|
# pytest for Python 3. The tests in script test_appendfilename.py are
|
|
# set up to work with pytest for Python 3; dependent on your
|
|
# installation, which may be named pytest-3, or (again) pytest.
|
|
#
|
|
# Put this file like test_appendfilename.py in the root folder of
|
|
# appendfilename fetched from PyPi or GitHub. Then run
|
|
#
|
|
# chmod +x *
|
|
# make ./Makefile
|
|
#
|
|
# to run the tests. If you want pytest to exit the test sequence
|
|
# right after the first test failing, use the -x flag to the
|
|
# instructions on the CLI in addition to the verbosity flag to (-v).
|
|
|
|
# pytest -v test_appendfilename.py # only pytest for Python 3 is present
|
|
pytest-3 -v test_appendfilename.py # pytest if Python 2 and Python 3 coexist
|