summaryrefslogtreecommitdiff
path: root/testing/test_functions.py
Commit message (Collapse)AuthorAgeFilesLines
* breaking: unify version.distance to intRonny Pfannschmidt2023-04-031-22/+23
| | | | the difference between distance=0 and distance=None was hiding issues
* remove the utils moduleRonny Pfannschmidt2023-03-291-1/+1
| | | | | move command utils to _run_cmd move data_from_mime to integration
* private configruation moduleRonny Pfannschmidt2023-01-311-2/+2
|
* Bump minimal python to 3.7Ronny Pfannschmidt2022-05-291-0/+2
|
* complete mypy transformationRonny Pfannschmidt2022-05-291-10/+15
|
* numerous type fixes and initial guess no dev handlingRonny Pfannschmidt2022-01-131-12/+15
|
* apply reorder-python-importsRonny Pfannschmidt2021-08-071-8/+8
|
* fix: drop more Python 2 manuallyHenry Schreiner2021-03-161-3/+0
|
* testing: use and test SOURCE_DATE_EPOCH handlingRasmus Villemoes2020-10-141-11/+5
| | | | | | | | | | | | | Now that SOURCE_DATE_EPOCH is honoured, we can avoid the need to monkeypatch the time attribute with a MockTime object, while at the same time testing handling of SOURCE_DATE_EPOCH being set in the environment. Most tests will actually benefit from knowing exactly what to expect, so set SOURCE_DATE_EPOCH globally. There's an existing test in test_git.py which currently manually produces the yyyymmdd string to compare to - extend that test a bit to do it both with and without SOURCE_DATE_EPOCH being set, so that we keep at least one "today's date" test.
* no-local-version scheme and improved documentationcon-f-use2020-02-071-0/+3
|
* update pre-commit setup to modern practices and ensure flake8 is in line as ↵Ronny Pfannschmidt2019-11-251-1/+0
| | | | well (#369)
* fix unintended missing parametersRonny Pfannschmidt2018-10-271-5/+9
|
* Merge pull request #276 from punkadiddle/masterRonny Pfannschmidt2018-07-171-5/+5
|\ | | | | configurable version number extraction from tag strings
| * working draft using configuration instance classpunkadiddle2018-07-091-5/+5
| |
* | Add some pretned testsJonathan Piron2018-07-021-3/+6
|/
* fix #266 and add a unittest for the tag_to_versionRonny Pfannschmidt2018-05-221-1/+19
|
* inflict black on the codebase :)Ronny Pfannschmidt2018-05-131-35/+39
|
* resuffle version formatting, remove distance knowlege from guessing of the ↵Ronny Pfannschmidt2018-04-091-6/+6
| | | | next version
* Simply use samefile to compare if two paths refer to the same path. Ref #174.Jason R. Coombs2017-12-251-58/+0
|
* test_functions: test WinError() gets last error messageCosimo Lupo2017-06-201-0/+7
|
* test_functions: add test for get_windows_long_path_nameCosimo Lupo2017-06-201-0/+54
|
* Update test to reflect canonical syntax. Ref #126.Jason R. Coombs2016-10-261-1/+1
|
* Add test capturing failure. Ref #126.Jason R. Coombs2016-10-261-0/+1
|
* fix flake8 transgressionsRonny Pfannschmidt2016-10-201-1/+2
|
* fix #81 - fail more nice if git/hg is not availiableRonny Pfannschmidt2016-10-201-1/+7
|
* fix #107 - dont use node if it is noneRonny Pfannschmidt2016-10-121-8/+8
|
* fix issue #103 - reorder version dumpingRonny Pfannschmidt2016-10-051-1/+1
|
* properly write version file even if in pretend modeAntoine Beaupré2016-10-051-1/+7
| | | | | | | | | | | | | | | | | | | | | before this, SETUPTOOLS_SCM_PRETEND_VERSION make setuptools_scm fail to write the `write_to` file correctly. this was apparently to avoid issues with archives, which we believe is not a problem anymore. this *is*, however, a problem for other tools like Debian packaging: there, we use the pretend mechanism to import the version number from the Debian packaging system (from `debian/changelog`, usually). this works at setup time: setuptools_scm has the proper environment and detects the version. but if the software was written to depend on the `write_to` file, it will fail to find that version at runtime because `setup.py` will not have written the `write_to` file properly at build time. this patch simply makes sure that the version is written even if the provided version number is a string, which is usually the case for pretend version numbers. a fixed test case is also provided. Closes: #101
* Updated test in 990c5bd to use built in pytest fixture.Te-jé Rodgers2015-07-211-12/+3
|
* Last commit failed flake8 (crappy editor). Resolved.Te-jé Rodgers2015-07-211-3/+3
|
* Added test for 95ad537a8e595700a4d1964c4b1c2d8ce8aeb38cTe-jé Rodgers2015-07-211-0/+18
|
* make version construction pluggableRonny Pfannschmidt2015-02-211-21/+33
| | | | | | fixes #17 fixes #19 fixes #16
* pluggable versioning schemesRonny Pfannschmidt2015-02-211-5/+10
|
* create a package, return to self-use, split moduleRonny Pfannschmidt2015-02-171-0/+32