Compare commits

..

1 Commits

Author SHA1 Message Date
Sebastian Lohff 93e0c3dd7e Initial tests 2019-02-17 21:29:23 +01:00
2 changed files with 4 additions and 2 deletions

View File

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

View File

@ -79,7 +79,9 @@ 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):