summaryrefslogtreecommitdiff
path: root/test/test_util.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix timezone parsing functions for non-hour timezonesJames Cowgill2023-01-241-0/+21
| | | | | | | | The `utctz_to_altz` and `altz_to_utctz_str` functions fail to handle timezones with UTC offsets that are not a multiple of one hour. Rewrite them and add some unit tests. Fixes #630
* Allow failure of that one test on cygwinSebastian Thiel2022-08-251-0/+7
|
* reformat according to 'black' configuration file.Sebastian Thiel2022-05-181-6/+2
|
* Run everything through 'black'Sebastian Thiel2022-05-181-78/+94
| | | | | That way people who use it won't be deterred, while it unifies style everywhere.
* Fix #1284: strip usernames from URLs as well as passwordsGlenn Matthews2022-05-041-7/+23
|
* Update test_util.pyEric Wieser2021-08-041-1/+4
|
* Try a better testEric Wieser2021-08-041-3/+18
|
* Fix testEric Wieser2021-08-031-9/+9
|
* add initial types to remote.pyyobmod2021-05-031-1/+19
|
* Fix default actor name handlingAthos Ribeiro2020-10-231-4/+14
| | | | | | | | In c96476b, the new default_name nested function does not contain a retun statement. This leads to an issue when the environment variables are not present, where the actor name would not be set. Signed-off-by: Athos Ribeiro <athos@redhat.com>
* Get system user id in a lazy mannerAthos Ribeiro2020-10-221-1/+24
| | | | | | | | | | | | | | | | Calling getpass.getuser may lead to breakage in environments where there is no entries in the /etc/passwd file for the current user. Setting the environment variables for the git user configurations should prevents GitPython from using values from /etc/passwd. However, doing so will not prevent reading /etc/passwd and looking for an entry with the current user UID. This patch changes the behavior described above so GitPython will perform a lazy evaluation of /etc/passwd, only doing so when the environment variables for the git user configuration are not available. Signed-off-by: Athos Ribeiro <athos@redhat.com>
* accept datetime instances as datesAlba Mendez2020-08-311-0/+5
| | | | | | There's no easy way to re-create a commit (i.e. for rewriting purposes), because dates must be formatted as strings, passed, then parsed back. This patch allows parse_date() to accept datetime instances, such as those produced by from_timestamp() above.
* tests: move to root dirKonrad Weihmann2020-07-121-0/+286
| | | | | | | | | This should ensure that tests are NOT packaged into release package by setuptools, as tests are development only + fixtures after moving Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
* Revert moving tests out of 'git' folder, related to #1030Sebastian Thiel2020-07-121-286/+0
|
* tests: move to root dirKonrad Weihmann2020-07-121-0/+286
| | | | | | | | | This should ensure that tests are NOT packaged into release package by setuptools, as tests are development only + fixtures after moving Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
* Moved everything into the git subdirectory - some tests still need to be ↵Sebastian Thiel2010-11-251-109/+0
| | | | adjusted
* Actor: Moved it from git.objects.util to git.util, adjusted all imports ↵Sebastian Thiel2010-11-231-2/+6
| | | | | | accordingly. Added methods to Actor to retrieve the global committer and author information Reflog: implemented and tested append_entry method
* Updated MANIFEST and setup to include fixtures. Adjusted includes in all ↵Sebastian Thiel2010-11-211-1/+1
| | | | tests to work with the new directory structure
* flattened test folder structure, didn't adjust any file content yetSebastian Thiel2010-11-211-0/+105