commit
13b06793da
3 changed files with 7 additions and 5 deletions
|
@ -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:
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
feedparser==6.0.0b1
|
feedparser
|
||||||
|
|
|
@ -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():
|
||||||
|
|
Loading…
Reference in a new issue