mirror of
https://github.com/pypiserver/pypiserver
synced 2024-11-09 16:45:51 +01:00
dc8f62c04f
+ Add README-version TC.
15 lines
405 B
Python
15 lines
405 B
Python
#! /usr/bin/env py.test
|
|
|
|
import pytest
|
|
import re
|
|
from pypiserver import version as my_ver
|
|
|
|
@pytest.fixture()
|
|
def readme():
|
|
return open('README.rst', 'rt').read()
|
|
|
|
def test_READMEversion(readme):
|
|
m = re.compile(r'^\s*:Version:\s*(.+)\s*$', re.MULTILINE).search(readme)
|
|
assert m, "Could not find version on README!"
|
|
assert m.group(1) == my_ver, 'Updaed version(%s) on README!' % m.group(1)
|