Compare commits

..

3 Commits

Author SHA1 Message Date
Sebastian Lohff 1ec1671cb1 Refactor tests, add compression test 2019-02-17 20:55:37 +01:00
Sebastian Lohff 0dcd09ac80 Python3 compability for tests 2019-02-17 20:55:37 +01:00
Sebastian Lohff ae1800e157 Initial tests 2019-02-17 20:55:37 +01:00
2 changed files with 2 additions and 4 deletions

View File

@ -7,7 +7,7 @@
from __future__ import print_function
__version__ = '0.4.4'
__version__ = '0.4.5-unreleased'
import argparse
import base64

View File

@ -79,9 +79,7 @@ def test_version(run_servefile):
s = run_servefile('--version', stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
s.wait()
version = s.stdout.readline().decode().strip()
# hardcode version as string until servefile is a module
assert version == 'servefile 0.4.4'
assert version == 'servefile 0.4.5-unreleased'
def test_correct_headers(run_servefile, datadir):