Skip to content

Commit

Permalink
Merge pull request #277 from jfinkhaeuser/test-fixes
Browse files Browse the repository at this point in the history
Fix tests
  • Loading branch information
rafaelcaricio authored Sep 7, 2016
2 parents 52ec049 + 2d42fc6 commit 0dd0661
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def finalize_options(self):
TestCommand.finalize_options(self)
if self.cov_html:
self.pytest_args.extend(['--cov-report', 'html'])
self.pytest_args.extend(['tests'])

def run_tests(self):
import pytest
Expand All @@ -53,12 +54,19 @@ def run_tests(self):
sys.exit(errno)


def readme():
try:
return open('README.rst', encoding='utf-8').read()
except TypeError:
return open('README.rst').read()


setup(
name='connexion',
packages=find_packages(),
version=version,
description='Connexion - API first applications with OpenAPI/Swagger and Flask',
long_description=open('README.rst').read(),
long_description=readme(),
author='Zalando SE',
url='https://github.com/zalando/connexion',
keywords='openapi oai swagger rest api oauth flask microservice framework',
Expand Down

0 comments on commit 0dd0661

Please sign in to comment.