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 from __future__ import print_function
__version__ = '0.4.4' __version__ = '0.4.5-unreleased'
import argparse import argparse
import base64 import base64

View File

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