Merge pull request #745 from jayvdb/libvirt

.travis.yml setup
This commit is contained in:
tobi-wan-kenobi 2020-12-05 13:43:04 +01:00 committed by GitHub
commit 13b06793da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 5 deletions

View file

@ -18,11 +18,13 @@ addons:
apt: apt:
packages: packages:
libdbus-1-dev libdbus-1-dev
libffi-dev libgit2-dev
python3-pygit2 libvirt-dev
taskwarrior
install: install:
- pip install -U coverage pytest pytest-mock freezegun - pip install -U coverage pytest pytest-mock freezegun
- pip install $(cat requirements/modules/*.txt | cut -d ' ' -f 1 | sort -u|grep -v dbus-python|grep -v libvirt-python|grep -v Pillow|grep -v pygit2) - pip install 'pygit2<1' 'libvirt-python<6.3' 'feedparser<6' || true
- pip install $(cat requirements/modules/*.txt | cut -d ' ' -f 1 | sort -u)
script: script:
- coverage run --source=. -m pytest tests -v - coverage run --source=. -m pytest tests -v
after_script: after_script:

View file

@ -1 +1 @@
feedparser==6.0.0b1 feedparser

View file

@ -71,7 +71,7 @@ def test_byteformat():
assert byte(1024 + 512) == "1.50KiB" assert byte(1024 + 512) == "1.50KiB"
assert byte(1024 * 1024 * 2 + 1024 * 512) == "2.50MiB" assert byte(1024 * 1024 * 2 + 1024 * 512) == "2.50MiB"
assert byte(1024 * 1024 * 1024 * 4 + 1024 * 1024 * 512) == "4.50GiB" assert byte(1024 * 1024 * 1024 * 4 + 1024 * 1024 * 512) == "4.50GiB"
assert byte(1024 * 1024 * 1024 * 1024 * 2) == "2048.00GiB" assert byte(1024 * 1024 * 1024 * 1024 * 2) in ["2048.00GiB", "2.00TiB"]
def test_duration(): def test_duration():