From 18180d138fe67d0e0775145408dcb8113c5c6fd5 Mon Sep 17 00:00:00 2001 From: Joe Lombrozo Date: Fri, 9 Sep 2022 11:37:17 -0400 Subject: [PATCH] fix some testing issues --- .appveyor.yml | 4 ++-- .travis.yml | 3 +-- gitman/tests/test_models_source.py | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 63fc54d..74f95bc 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -22,8 +22,8 @@ install: - set PATH=C:\Python%PYTHON_MAJOR%%PYTHON_MINOR%;%PATH% - set PATH=C:\Python%PYTHON_MAJOR%%PYTHON_MINOR%\Scripts;%PATH% # Install system dependencies - - curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - - set PATH=%USERPROFILE%\.poetry\bin;%PATH% + - curl -sSL https://install.python-poetry.org | python - + - set PATH=C:\Users\appveyor\AppData\Roaming\Python\Scripts;%PATH% - make doctor # Install project dependencies - make install diff --git a/.travis.yml b/.travis.yml index 14664b9..ec719b3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,8 +15,7 @@ env: - RANDOM_SEED=0 before_install: - - curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - - source $HOME/.poetry/env + - curl -sSL https://install.python-poetry.org | python3 - - make doctor install: diff --git a/gitman/tests/test_models_source.py b/gitman/tests/test_models_source.py index e4a3b79..3b2d6b5 100644 --- a/gitman/tests/test_models_source.py +++ b/gitman/tests/test_models_source.py @@ -23,7 +23,7 @@ def test_init_defaults(self): assert "HEAD" == source.rev def test_init_invalid_rev_default_gets_corrected(self): - source = Source(type="git", repo="http://example.com/foo/bar.git", rev=None) + source = Source(type="git", repo="http://example.com/foo/bar.git", rev='') assert "HEAD" == source.rev